摘要: 脚本的预编译 1.//没有 var 的变量都不是变量声明,全部认为window的全局变量,不参与预编译 console.log(aa);//undefind var aa = 0; console.log(aa);//0 console.log(bb); bb = 5; console.log(bb 阅读全文
posted @ 2019-08-07 16:38 假亦真LL 阅读(249) 评论(0) 推荐(0) 编辑
摘要: arguments对象与数组类似,可以使用length属性确定函数传进多少参数。 var f = function m(x) { if (x <= 1) { return 1; } else { return x * m(x - 1); } }; var f = function (x) { if 阅读全文
posted @ 2019-08-01 15:04 假亦真LL 阅读(262) 评论(0) 推荐(0) 编辑
摘要: var map = new BMap.Map("allmap",{minZoom:5,maxZoom:8}); // 创建Map实例,设置地图允许的最小/大级别 阅读全文
posted @ 2019-07-23 11:38 假亦真LL 阅读(1165) 评论(0) 推荐(0) 编辑