[Type Script] this 相關問題解決
關於TypeScript在類別內若要使用類別內的方法或全域屬性,我們會透過this來存取,如下圖,在NewModel方法內透過this存取屬性 問題1.在function內的this無法取得全域屬性 如下紅框,此時的this代表的是function本身
Learning is like sailing against the current
not to advance is to drop back