09 2015 档案
摘要:1.方法可作为对象使用function aa() { this.a = "aaaa"; this.b = 23; this.f = function () { alert(this.a); }aa.bb = "aaaf";}var t = new aa();alert(t.b);t.f();ale...
阅读全文
摘要:compile 'org.igniterealtime.smack:smack-android:4.2.0-alpha1' compile 'org.igniterealtime.smack:smack-android-extensions:4.2.0-alpha1' compile '...
阅读全文
摘要:1.===和!==将严格比较值和类型,例如 “5”==5 为true,而“5”===5为false2.逗号运算符返回最右边表达式的值,例如alert((a=5,b=3,c=6));输出63.void运算符强制使表达式没有返回值,例如alert(void (a=5,b=3,c=6));输出undefi...
阅读全文
摘要:1.基本类型A.字符串B.数值C.布尔D.nullE.undefined*undefined实际是一个变量,值为undefined,部分浏览器不支持,所以开始最好加入一句var undefined2.复合类型A.ObjectB.ArrayC.Function3.数组内元素不分类型,例如var a =...
阅读全文
浙公网安备 33010602011771号