Returning a result value. This is useful for scripts that are processed using URLs via the Script Command Servlet, as the results are returned as the HTML response from the servlet:
function result()
{
return 'The name of my home space is: ' + userhome.name;
}
result();
The following solution will also return a value if placed at the end of a script:
// script here
// ...
var result = 'some results...';
result;
文档更新时间: 2020-02-16 15:55 作者:凌云文档