Try running this version of the Ajax code and you should only get the alert message one time, which is as it should be.
尝试运行新版本的Ajax代码,现在就会看到与预期的一样,只显示一次警告信息了。
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,那么取消远程调用,并显示一条警告消息。
应用推荐