摘要:
what are the rules for how == converts types? 关于"=="的比较规则: 1. Comparing numbers and strings will always convert the strings to numbers. number类型与strin 阅读全文
摘要:
JS的变量作用域只有两种:全局作用域与函数作用域。用var声明的变量不能简单的说是属于函数作用域,应该是说属于其最近的作用域。var a = 10;function test(){ var a; console.log(a); //undefined}test();console.log(... 阅读全文