粗大的内捧猛烈进出小视频,日本成人精品视频一区,在线播放亚洲成人av,精品人妻少妇嫩草av专区,亚洲AV永久久久久久久浪潮,性导航app精品视频,九九热精品免费视频,一本一本大道香蕉久在线播放

        javascript中的this綁定

        2020-4-21    前端達人

        his是一個關鍵字,表示執行當前函數的對象

        • this永遠跟著當前函數走,
        • 永遠是一個對象,

        • 永遠在函數執行時才能確定。
        • 1. 默認綁定:沒有明確被隸屬對象執行的函數,this指向window


        function fn(){
            console.log(this);              //window
            console.log(typeof this);       //object
        }
        fn();

        - 嚴格模式下,this指向undefiend

        "use strict";
        function fn(){
            console.log(this);              //undefined
        }
        fn();




        日歷

        鏈接

        個人資料

        藍藍設計的小編 http://www.xintaizi.com

        存檔