AppMaker Return 从服务器端到客户端的值

AppMaker Return value from server side to client side

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

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

服务器端的功能是

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

但服务器没有 return 字符串。我尝试使用 withSuccessHandler() 但客户端脚本中没有 onSucess 处理程序

还有另一种方法可以从服务器获取 returned 值吗? 坦克

在服务器端

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

在客户端

    function showall(){

    google.script.run.withSuccessHandler(
function(returned_result){ 
app.pages.ProjectComposant.children.Html1.html = JSON.Parse(returned_result); 
})
    .showhtml();
    }