-
查看全部
-
5個(gè)關(guān)鍵詞
查看全部 -
ES5 ES6合并數(shù)組
查看全部 -
ES5 ES6 可變參數(shù)
查看全部 -
ES6 必選參數(shù)檢查效果
查看全部 -
ES5 ES6 默認(rèn)參數(shù)
查看全部 -
ES3 ES5 函數(shù)中 this 指向當(dāng)前的調(diào)用的對(duì)象
查看全部 -
箭頭函數(shù)中 this 的指向是定義時(shí) this 的指向
查看全部 -
ES6 使用{} 塊級(jí)作用域進(jìn)行隔離
查看全部 -
ES5 使用立即執(zhí)行函數(shù)進(jìn)行隔離
查看全部 -
ES5 ES6作用域
查看全部 -
ES5 ES6 定義常量方法
查看全部 -
arrow function 中的 this 指向定義時(shí)的對(duì)象
查看全部 -
這里console.table()輸出的都是6是因?yàn)椋?/p>
callbacks[i]引用了變量
i
,但它并非立刻執(zhí)行。console.table時(shí),它們所引用的i已經(jīng)變成了3,因此最終結(jié)果為6查看全部 -
es5常量的定義
Object.definePrpperty(window,"a",{//a是名稱
????value:5.30617852110,//值
????writable:false,//不可寫(xiě)
})
es6
const a = 54368.24154841;
查看全部
舉報(bào)