我正在尝试调用由按钮的 onclick 触发的 remoteFunction 调用,但单击不会调用该函数。我已经使用警报启动测试了 onlick 命令并调用了该函数。这是我的代码。
<input type="button" onclick="exportList()" value= "Export"/>
function exportList(){
var profile= document.getElementById('dropdown').value
${remoteFunction(controller: 'profile' , action:'export', params: "'profile=' + profile")}
}
当我取出参数和 var 配置文件时,仍然没有调用该函数...我的控制器和操作已正确命名,所以我不知道为什么会出现此错误。如果您能提供帮助,请提前致谢!