摘要: <!doctype html><html><head><meta charset="utf-8"><title>无标题文档</title><style type="text/css">body { height:2000px; }#box { width:150px; height:300px; background:#ccc; position:fixed; left:-150px; font-size:14px; }#box span { width:20px; pa 阅读全文
posted @ 2012-09-19 23:38 赵小磊 阅读(654) 评论(0) 推荐(0) 编辑
摘要: /*最流行的写法*/(function(){ alert("run!") })(); /* !号可以有1~正无穷个,所以这一种就可以衍生无数种方式 */!!!(function(){ alert("run!") })(); (function(){ alert("run!") }).call(); (function(){ alert("run!") }).apply(); (function(){ alert("run!") }()); void(function(){ alert(" 阅读全文
posted @ 2012-09-19 10:37 赵小磊 阅读(205) 评论(0) 推荐(0) 编辑
回到头部