判断this是不是指向window
this === window ? console.log(‘browser’) : console.log(‘node’);
若有收获,就点个赞吧
0 人点赞
让时间为你证明