개발/Vue.js
[인프런] 뷰 인스턴스에서의 this
areumtb
2019. 8. 27. 17:25
뷰 객체안에 메서드나 데이터 들은 this로 불러올 수 있다.
this 는 뷰에 들어있는 객체를 뜻함
https://www.w3schools.com/js/js_this.asp
JavaScript this
The JavaScript this Keyword Example var person = { firstName: "John", lastName : "Doe", id : 5566, fullName : function() { return this.firstName + " " + this.lastName; } }; Try it Yourself » What is this? The JavaScript this keyword ref
www.w3schools.com
https://medium.com/quick-code/understanding-the-this-keyword-in-javascript-cb76d4c7c5e8