関数use strictの違い
274 ワード
// 1: , this window,
function C(){
use strict;
console.log(this);//Uncaught SyntaxError: Unexpected identifier
}
C();
// 2: , this undefined, window
function C(){
console.log(this);//window
}
C();