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

浙公网安备 33010602011771号