2017年9月20日

js的严格模式

摘要: 严格模式主要有以下限制: 变量必须声明后再使用 函数的参数不能有同名属性,否则报错 不能使用with语句 不能对只读属性赋值,否则报错 不能使用前缀0表示八进制数,否则报错 不能删除不可删除的属性,否则报错 不能删除变量delete prop,会报错,只能删除属性delete global[prop 阅读全文

posted @ 2017-09-20 17:40 cag2050 阅读(146) 评论(0) 推荐(0)

commonJS、AMD、es模块化 区别(表格比较)

摘要: commonJS、AMD、es6模块化 区别(表格比较): table th:first of type { } table th:nth of type(3) { width: 150px; } table th:nth of type(4) { width: 150px; } 区别项 | es模 阅读全文

posted @ 2017-09-20 17:06 cag2050 阅读(1058) 评论(0) 推荐(0)

vue-resource 知识点

摘要: vue resource 发送json到后端: Content Type字段的类型是application/json,就会有options请求。 http://www.ruanyifeng.com/blog/2016/04/cors.html vue resource 使用示例: If your w 阅读全文

posted @ 2017-09-20 15:52 cag2050 阅读(154) 评论(0) 推荐(0)

导航