_class("HomePage", Page, function(){
this.init = function(){
_super.init.apply(this, arguments);
this.initComponents();
this.initActionElements();
$('#home').click(this.start);
};
this.aaa = function(a) {
var b = a + 100;
return b;
} this.start = function(e) {
var c = this.aaa(20);
}
}var c = this.aaa(20);这里报错 如何在类里面调用本类的函数?
this.init = function(){
_super.init.apply(this, arguments);
this.initComponents();
this.initActionElements();
$('#home').click(this.start);
};
this.aaa = function(a) {
var b = a + 100;
return b;
} this.start = function(e) {
var c = this.aaa(20);
}
}var c = this.aaa(20);这里报错 如何在类里面调用本类的函数?
解决方案 »
- 哪位大侠能帮我修改一下代码(鼠标经过div DIV由透明变为不透明),小弟不胜感激
- Ext js 视频讲座 还有spring aop 想听的进
- 关于区分单击和双击的问题
- 获得简单的时间怎么获得。在jsp中直接展示
- 日期:YYYYMMDD和時間:HHMMDD的正則表達式分別是什么?
- 想问一下这种图片切换效果的原理,分不多只有40
- 子页面回传值问题
- 求助jscript高手,如何维持网页中选择的内容不失去焦点?
- 各位大哥们!大姐们!Come Here!Please help me!时间日期问题!来者有分啊!
- vue-waterfull-eazy图片不显示
- 那位大虾用过jquery插件flexigrid。发觉flexigrid在IE8下不能调换列,调整列宽也有问题,咋回事呀?
- hidden传递C#与JS变量
this.start = function(e) {
var c = x.aaa(20);
} 现在试试。。
或是 在函数外
先把this保存下来。
var _this=this;
然后在函数内再调用 _this.aaa(20)