function dd() { if (i == "小明") { return false; } }服务器端按钮 onclientclick= return dd()一定要有反回值,如果为真则提交到服务端,否则停止提交