Listing 1 shows the Validator function, which takes four parameters: a form name, an element name, an id, and a message.
清单1给出了Validator函数,该函数有4个参数:表单名称、元素名称、id和消息。
If the valid function returns false for any of the two parameters, the remote call is canceled and an alert message is shown.
如果对于两个参数中的任何一个参数,valid函数返回false,那么取消远程调用,并显示一条警告消息。
If the valid function returns false for any of the two parameters, the remote call is canceled and an alert message is shown.
如果对于两个参数中的任何一个参数,valid函数返回false,那么取消远程调用,并显示一条警告消息。
应用推荐