L_fYtlY 发表于 2026-5-18 16:06:30

this.table 和this.

我在查询数据表的按钮上做了window.open,打开的新窗口去调用this.tabaleg或者action.InvokeAction.execute调用脚本,都显示未找到,是不允许调用吗?




Uncaught TypeError: this.Table is not a constructor
    at saveData (<anonymous>:6:25)
    at HTMLButtonElement.onclick (index.html:1:1661)

Havoc-Wei 发表于 2026-5-19 18:48:16

新开页还在o2oa环境下吗?如果不在的话this中肯定没有对应的方法和构造,另外你插入的代码用的是funtion,this的指向发生了改变,试下.bind(this)或者箭头函数

Return 发表于 2026-5-19 23:23:30

两只 老虎。两只老虎

L_fYtlY 发表于 2026-5-20 13:38:44

Havoc-Wei 发表于 2026-5-19 18:48
新开页还在o2oa环境下吗?如果不在的话this中肯定没有对应的方法和构造,另外你插入的代码用的是funtion,t ...

感谢,我用别的办法也解决了
页: [1]
查看完整版本: this.table 和this.