$(document).ready(function(){ /* 提交 */ $("body").unbind('click'); $("body").click(function(event){ var _id=$(event.target).attr("id"); if (_id=="pw_btn") { clearErrorTips("tip","waring"); var phone=trimAll($("[name=phone]").val(),"g"); //var number=trimAll($("[name=number]").val(),"g"); if (phone=="") { setErrorTips("phone_tip","errorTips",message[6]); return ; }else { var bool=checkPhone(phone); if (bool==false) { setErrorTips("phone_tip","errorTips",message[11]); return ; } } var msg={"telephone":phone}; sendClientMsg(root+"Login/getPassword",msg,""); } }); });