1

下面的代码可以正常工作,但是当我输入不正确的登录详细信息时,我得到 ' NetworkError: 403 Forbidden - http://.....'

它也出现在错误计数中。是否可以不显示此错误?

 $(document).ready(function() {
          $("#login").click(function(event){
              $.get( 
                 loginURL,
                 { authaccountid: $('#authaccountid').val(), authemail:$('#authemail').val(), authpassword:$('#authpassword').val()},function() {})
                .success(function() { alert("success"); })
                .error(function() { alert("error"); })
          });
       });
4

0 回答 0