摘要: 我们接下来实现一个简单的扫光文字! html代码如下: 阅读全文
posted @ 2019-10-08 16:59 li阿根 阅读(1259) 评论(0) 推荐(0) 编辑
摘要: if变形语句! 逻辑 AND 还可以被使用来为函数参数设置默认值 阅读全文
posted @ 2019-10-08 15:35 li阿根 阅读(3036) 评论(0) 推荐(1) 编辑
摘要: JS数组获取值:var numbers = [5, 458 , 120 , -215 , 228 , 400 , 122205, -85411]; var maxInNumbers = Math.max.apply(Math, numbers); var minInNumbers = Math.mi 阅读全文
posted @ 2019-10-08 15:24 li阿根 阅读(1068) 评论(0) 推荐(0) 编辑
摘要: JS数组 js数组我们经常在开发中使用,那么,我们如何快速的随机选择其中一项呢 代码: var items = [12, 548 , 'a' , 2 , 5478 , 'foo' , 8852, , 'Doe' , 2145 , 119]; var randomItem = items[Math.f 阅读全文
posted @ 2019-10-08 15:18 li阿根 阅读(10345) 评论(0) 推荐(0) 编辑