摘要:
<!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 阅读全文
摘要:
/*最流行的写法*/(function(){ alert("run!") })(); /* !号可以有1~正无穷个,所以这一种就可以衍生无数种方式 */!!!(function(){ alert("run!") })(); (function(){ alert("run!") }).call(); (function(){ alert("run!") }).apply(); (function(){ alert("run!") }()); void(function(){ alert(" 阅读全文