内置函数:

1、字符函数

(1) Subsutring substr charAt split length indexof concat replace
js函数类型 - 图1

js函数类型 - 图2

js函数类型 - 图3

2、日期函数

(1) Date getDate getDay getMonth getFullYear (getYear) getHours getMinutes getSeconds
js函数类型 - 图4

3、数学函数

1、 max min abs(取绝对值)
2、Math.round:取整,满足四舍五入
js函数类型 - 图5
3、n .toFixed:取小数,满足四舍五入
4、Math. ceil :向上取整 18.09→19
5、Math. floor :向下取整 18.90→18
6、Math. roundom :取1>x>=0的数
image.png
例子:
image.pngimage.pngimage.png
7、拓展:
①toUpperCase:把字符串全部转化为大写image.png
②toLowerCase:把字符串全部转化为小写image.png

4、转化函数

(1) parseInt parseFloat Number Boolean