Home > front end > AJAX cross-domain implementation success or error, complete execution.
AJAX cross-domain implementation success or error, complete execution.
Time:09-25
But after ten minutes can execute, and why! The function the Submit () { //use jQuery asynchronous submission form Var name=document. GetElementById (' login__uid '); If (name, value='https://bbs.csdn.net/topics/={ Alert (" sorry, student id or job number can't be empty!" ); return false; } Var j=$(' # myForm) serialize (); $. Ajax ({ Type: 'get', Url: http://172.16.1.92:8080/gvsuntms/openApi/tcoursesite/test/saveTAssignmentItemMapping? AssignmentId=20169 ', DataType: 'the json, /* data: $(' # myForm). Serialize (), */ Data: j, ContentType: "application/json," Json: 'callback', JsonpCallback: 'success_Callback', Success: the function (data) {
Alert (" your score is "+ data. TotalScore. TotalScore +" points! Please continue to refuel oh ~ (click ok to return to the home page) ");
Ten minutes later did not implement the==,, is sometimes performed, sometimes not
CodePudding user response:
http://172.16.1.92:8080/gvsuntms/openApi/tcoursesite/test/saveTAssignmentItemMapping? AssignmentId=20169 This root access, This is because the site is not stable, caused by js you write again good also useless,