2016-03-31 10:22 | 题主 | ||||||||
|
表格column的renderer方法内调用app内的方法报undefined is not a function 在表格的renderer内添加alinkreturn '<a href="javascript:app.setDept(index)">打开</a>'; console报undefined is not a function app.setDept方法在module的initialize事件内定义: |
2016-04-01 20:47 | #1 | ||||||||
|
renderer使用a link已经在app作用域之外,可以使用: this.appScope.setDept(); this指向表格 |