
js
wky1151851476
这个作者很懒,什么都没留下…
展开
-
js的高阶函数
js的高阶函数 高阶函数 高阶函数是对其他函数进行操作的函数,它接收***函数作为参数***或将***函数作为返回值***输出 函数作为参数: <script> function aa(a,b,fun){ console.log(a+b) fun() } aa(5,6,function(){console.log("我是函数,我是...原创 2019-12-01 17:36:29 · 186 阅读 · 0 评论 -
es5的严格模式
es5的严格模式只需要在script标签上里第一行定义即可 'use strict'; 1、不声明变量会报错 比如在传统模式下一个变量未声明是可以使用的 a=10; console.log(a) 控制台打印10 'use strict'; <script> 'use strict'; a=10; console.log(a) ...原创 2019-12-01 14:50:09 · 217 阅读 · 0 评论