摘要:
<body> <script> //math对象 //Math.ceil(num) 向上取整 即大于num的最小整数 //Math.floor(num) 返回整数部分 //Math.round(num) 四舍五入 //Math.abs(num) 绝对值 //Math.random() 取0-1之间的 阅读全文
posted @ 2020-07-05 17:09
小余猪
阅读(154)
评论(0)
推荐(0)
摘要:
<body> <script> //String //charAt()取字符 返回字符本身 charCodeAt()返回字符对应的编码 //截取方法 slice() 和数组差不多 //substring() 当参数是负数时 自动转换为0 会把较小的数作为起始位置 //substr() 第二个参数为截 阅读全文
posted @ 2020-07-05 16:21
小余猪
阅读(82)
评论(0)
推荐(0)
摘要:
<body> <script> //内置函数 //数组 //arrayObject.push(...)把参数顺序添加到arrayObject的尾部 返回新数组的长度 //arrayObject.unshift(...)把参数顺序添加到arrayObject的最前面 //pop()删除最后一个元素 返 阅读全文
posted @ 2020-07-05 15:29
小余猪
阅读(120)
评论(0)
推荐(0)

浙公网安备 33010602011771号