如题所述
$(function () {
$("#btlogin").click(function () {var txtaccount = $("#txtaccount").val();
var txtpassword = $("#txtpassword").val();
if (txtaccount == "") {
$("#txtaccount").focus();
formMessage('ç»å½è´¦æ·ä¸è½ä¸ºç©º', 'warning');
return false;
} else if (txtpassword == "") {
$("#txtpassword").focus();
formMessage('ç»å½å¯ç ä¸è½ä¸ºç©º', 'warning');
return false;
} else {
$.ajax({
type: 'POST',
url: åå°æä½çè¿æ¥å°åï¼åæ¤è¿æ¥å å°ä¿¡æ¯æå ¥å°æ°æ®åº ,
data: data ,
success: success ,
dataType: dataType
});
}
});
});
温馨提示:答案为网友推荐,仅供参考