I have a class defined like this (scheme) :
myClass = BaseClass.extend({
method1 : function(){ ...},
method2 : function(){ ...}
});
How can I call method2 from method1? something like:
myClass = BaseClass.extend({
method1 : function(){ method2(); },
method2 : function(){ ...}
});
您需要范围:
this.method2();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.