代码如下: function check(txt){ $j(“form”).submit(function(){ if($txt==”提交”){ this.action=”doAddMessage.action?button=提交”; this.submit(); }else{ this.action=”doAddMessage.action?button=保存”; this.submit(); } }); } <input type=”IMAGE” src=”style/blue/images/