从服务器端到客户端的AppMaker返回值

我在AppMaker页面上有一个在客户端执行函数的按钮

function showall(){
  app.pages.ProjectComposant.children.Html1.html = google.script.run.showhtml();
}

服务器端的函数是

function showhtml(){
  return "<p>test</p>";
}

但是服务器不会返回该字符串。我尝试使用withSuccessHandler(),但客户端脚本上没有onSucess处理程序

还有另一种从服务器获取返回值的方法吗?油箱

转载请注明出处:http://www.0591kyj.com/article/20230329/1663527.html