摘要:
1 var sub = document.getElementById("sub");2 sub.setAttribute("disabled", "disabled"); // 兼容的3 sub.setAttribute("style", "position:absolute;left:100px;top:100px;"); // IE 7 不能设置成功4 5 // 以下为兼容方法: 6 var cssText = "position:absolute;left:100px;top: 阅读全文
摘要:
1 var a = 1; 2 function aa(){ 3 a = 2; 4 } 5 aa(); 6 console.log("a:", a); // 2 7 8 var b = 1; 9 function bb(){10 b = 2;11 var b = 3;12 }13 bb();14 console.log("b:", b); // 115 16 function foo(){17 var a1 = 1;18... 阅读全文
摘要:
1 2 3 4 5 6 7 劲爆鸡米花 1 阅读全文