jQuery ajax错误函数
我有一个ajax调用将数据传递给页面,然后返回一个值。
我已经从页面检索了成功的调用,但我编写了它,以便在asp中引发错误。我如何从jquery中检索该错误?
例如:
cache: false,url: "addInterview_Code.asp",type: "POST",datatype: "text",data: strData,success: function (html) {
alert('successful : ' + html);
$("#result").html("Successful");},error: function (error) {
**alert('error; ' + eval(error));**}这是我不理解的错误位。在函数中我需要放置什么参数,以便我可以使用我在服务器中引发的错误消息。
慕田峪7331174
吃鸡游戏
慕桂英546537
郎朗坤
随时随地看视频慕课网APP
相关分类