Today, I used Microsoft callback as a control. I encountered a strange error. After debugging, I found that it was Microsoft JavaScript. Code A small bug in. 1 Function Webform_callbackcomplete () {
2 For (I = 0 ; I < _ Pendingcallbacks. length; I ++ ) {
3 Callbackobject = _ Pendingcallbacks [I];
4 If (Callbackobject && Callbackobject. xmlrequest && (Callbackobject. xmlrequest. readystate = 4 )) {
5 Webform_executecallback (callbackobject );
6 If ( ! _ Pendingcallbacks [I]. async) {
7_ Synchronouscallbackindex= -1;
8}
9 _ Pendingcallbacks [I] = Null ;
10 VaR Callbackframeid = " _ Callbackframe " + I;
11 VaR Xmlrequestframe = Document. getelementbyid (callbackframeid );
12 If (Xmlrequestframe) {
13Xmlrequestframe. parentnode. removechild (xmlrequestframe );
14}
15 }
16 }
17 }
Note that the variable I is not defined using VAR. If you use the variable I that is not defined by VAR in your JavaScript code, it will certainly fail. Haha.
Remind everyone.