摘要: 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: 阅读全文
posted @ 2013-09-27 10:55 楚玉 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2013-09-27 10:35 楚玉 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 6 7 劲爆鸡米花 1 阅读全文
posted @ 2013-09-27 09:32 楚玉 阅读(232) 评论(0) 推荐(0) 编辑