{"id":334,"date":"2017-02-05T15:32:42","date_gmt":"2017-02-05T07:32:42","guid":{"rendered":"http:\/\/www.qdabc.cn\/?p=334"},"modified":"2017-02-05T15:32:42","modified_gmt":"2017-02-05T07:32:42","slug":"%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%ef%bc%8c%e5%87%bd%e6%95%b0%e6%9e%84%e9%80%a0%e6%96%b9%e6%b3%95%e4%bb%a3%e7%a0%81%e4%b8%be%e4%be%8b","status":"publish","type":"post","link":"http:\/\/www.qdabc.cn\/?p=334","title":{"rendered":"\u9762\u5411\u5bf9\u8c61\uff0c\u51fd\u6570\u6784\u9020\u65b9\u6cd5\u4ee3\u7801\u4e3e\u4f8b"},"content":{"rendered":"<pre class=\"brush:html;toolbar:false\">&lt;!DOCTYPE html&gt;  \r\n&lt;html&gt;   \r\n    &lt;head&gt;  \r\n        &lt;meta charset=\"UTF-8\"&gt;  \r\n        &lt;title&gt;\u9762\u5411\u5bf9\u8c61\uff0c\u51fd\u6570\u6784\u9020\u65b9\u6cd51&lt;\/title&gt;  \r\n    &lt;\/head&gt;   \r\n    &lt;body&gt;  \r\n    &lt;\/body&gt;  \r\n    &lt;script&gt;  \r\n    \/*(function(){}());\u5c06\u53d8\u91cf\u65b9\u6cd5\u7b49\u641e\u6210\u4e0d\u540c\u4f5c\u7528\u57df\uff0c\u5373\u5c01\u88c5\u67d0\u4e9b\u4ee3\u7801\u5757\uff0c\u540e\u52a0()\u662f\u4e3a\u4e86\u53ef\u4ee5\u6267\u884c*\/  \r\n    (function(){  \r\n        var n=\"\u5c40\u90e8\u4f5c\u7528\u57df\u7684\u53d8\u91cfn\";  \r\n        function people(name,age,sex){\/\/people\u7c7b\u7684\u6784\u9020\u51fd\u6570  \r\n            this.name=name;  \r\n            this.age=age;  \r\n            this.sex=sex;  \r\n        }  \r\n        people.prototype.n=n;  \r\n        people.prototype.say=function(){  \r\n            alert(\"people----say\");  \r\n        }  \r\n        window.people=people;\/\/\u8d4b\u503c\u7ed9window\uff0c\u5168\u5c40\u624d\u53ef\u4ee5\u8c03\u7528           \r\n    }());     \r\n    (function(){  \r\n        function stu(name,age,sex){\/\/stu\u7c7b\u7684\u6784\u9020\u51fd\u6570  \r\n            this.name=name;  \r\n            this.age=age;  \r\n            this.sex=sex;  \r\n        }  \r\n        stu.prototype=new people();\/\/\u7ee7\u627fpeople\u7c7b      \r\n        var speple_say=stu.prototype.say;  \r\n        people.prototype.say=function(){  \r\n            speple_say.call(this);\/\/\u5b50\u7c7b\u8c03\u7528\u7236\u7c7b\u7684say\uff08\uff09  \r\n            alert(\"stu----say\");\/\/\u91cd\u5199\u7236\u7c7bsay()  \r\n        }  \r\n        window.stu=stu;\/\/\u8d4b\u503c\u7ed9window\uff0c\u5168\u5c40\u624d\u53ef\u4ee5\u8c03\u7528  \r\n    }());    \r\n    var p=new people('\u5c0f\u660e','12','\u7537');  \r\n    p.say();  \r\n    alert(p.name+\"  \"+p.n);  \r\n    var s=new stu();  \r\n    s.say();  \r\n    alert(s.n);  \r\n    &lt;\/script&gt;  \r\n&lt;\/html&gt;<\/pre>\n<pre class=\"brush:html;toolbar:false\">&lt;!DOCTYPE html&gt;  \r\n&lt;html&gt;  \r\n    &lt;head&gt;  \r\n        &lt;meta charset=\"UTF-8\"&gt;  \r\n        &lt;title&gt;\u9762\u5411\u5bf9\u8c61\uff0c\u51fd\u6570\u6784\u9020\u65b9\u6cd52&lt;\/title&gt;  \r\n    &lt;\/head&gt;  \r\n    &lt;body&gt;  \r\n    &lt;\/body&gt;  \r\n    &lt;script&gt;  \r\n    \/*(function(){}());\u5c06\u53d8\u91cf\u65b9\u6cd5\u7b49\u641e\u6210\u4e0d\u540c\u4f5c\u7528\u57df\uff0c\u540e\u52a0()\u662f\u4e3a\u4e86\u53ef\u4ee5\u6267\u884c*\/  \r\n    (function(){  \r\n        var n=\"\u5c40\u90e8\u53d8\u91cfn\";  \r\n        function people(name){  \r\n            var _this={};\/\/\u58f0\u660e_this\u53d8\u91cf\u662f\u4e00\u4e2a\u7a7a\u5bf9\u8c61  \r\n            _this.name=name;  \r\n            _this.say=function(){  \r\n                alert(\"people----say---\"+_this.name);  \r\n            }  \r\n            return _this;\/\/\u4e2a\u4eba\u89c9\u5f97people\u66f4\u50cf\u662f\u4e00\u4e2a\u65b9\u6cd5\u800c\u4e0d\u662f\u7c7b  \r\n        }  \r\n        window.people=people;  \r\n    }());     \r\n    function stu(name){  \r\n        var _this=people(name);  \r\n        var supersay=_this.say;  \r\n        _this.say=function(){  \r\n            supersay.call(_this);  \r\n            alert(\"stu----say---\"+_this.name);  \r\n        }  \r\n        return _this;  \r\n    }    \r\n    var s=stu('jick');  \r\n    s.say();     \r\n    &lt;\/script&gt;  \r\n&lt;\/html&gt;<\/pre>\n<p class=\"post-copyright\">\u6b22\u8fce\u5206\u4eab\u672c\u6587\uff0c\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u51fa\u5904\uff1a<a href=\"http:\/\/www.qdabc.cn\">\u524d\u7aefABC<\/a> &raquo; <a href=\"http:\/\/www.qdabc.cn\/?p=334\">\u9762\u5411\u5bf9\u8c61\uff0c\u51fd\u6570\u6784\u9020\u65b9\u6cd5\u4ee3\u7801\u4e3e\u4f8b<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&#8221;UTF-8&#8243;&gt; &lt;title&gt;\u9762\u5411\u5bf9\u8c61\uff0c\u51fd\u6570\u6784\u9020\u65b9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":321,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[61,60],"_links":{"self":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/334"}],"collection":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=334"}],"version-history":[{"count":1,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/334\/revisions"}],"predecessor-version":[{"id":335,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/334\/revisions\/335"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/media\/321"}],"wp:attachment":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=334"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}