JavaScript this All In One
js, this, bind, call, apply, new, function, arrow function, constructor function, class
- this in a global context
golbalThis
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis
- this in object construction
- this in an object method
- this in a simple function
- this in an arrow function
- this in an event listener
- this in a class
refs
https://github.com/zellwk/zellwk.com/blob/master/src/posts/2017-06-21-this.md
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!