abort() 函数中止 WMLScript,并向该脚本的调用者返回一条消息。
Lang.abort(text)
成分 | 描述 |
---|---|
text | 一个字符串。 |
var errtxt = "Illegal value"; Lang.abort("Error in function: " + errtxt);
The script is aborted, and the string "Error in function: Illegal value" is returned to the caller of the script.