【发布时间】:2018-01-20 16:39:27
【问题描述】:
有没有办法在控制器的 init() 函数中编写的 jQuery 语法中调用 SAP UI5 控制器函数? 我的意思是我在 user.controller.js 的 init() 中写了下面的代码 sn-p。我有一个函数 checkId() 写在同一个控制器中,我想在下面的 sn-p 中调用它。如何做到这一点? 我的代码:
$(window).load(function(){
$("#myid").mousedown(function(){
this.checkId(); //returns is not a function
});
});
【问题讨论】: