摘要:
本文学习自:http://openwares.net/js/javascript_declaration_hoisting.html https://bonsaiden.github.io/JavaScript-Garden/zh/两篇博文 JavaScript 有两种变量:全局变量和局部变量。 如 阅读全文
摘要:
1、js中use strict的作用域范围只在当前脚本有效:比如1.js里面调用2.js的方法,1.js里面声明"use strict",而2.js里面没有声明,则该调用为正常模式调用,并非严格模式; 2、location.replace与location.href的区别在于:location.re 阅读全文