IE9 makes ajax call correctly only ofter hitting F12

前端 未结 4 1633
逝去的感伤
逝去的感伤 2020-12-15 06:50

I have this jQuery code in my JSP page (jQuery 1.7.2) :

   function Header() {
      this.add = function ( parentDiv, leftToolbar, rightToolbar ) {
                  


        
4条回答
  •  粉色の甜心
    2020-12-15 07:04

    I had this problem and I had all the console references commented out in the scripts, but it was still failing in IE only (11). I found the solution was to add cache false to my AJAX calls.

    $.ajax({
            **cache: false,**
            type : 'GET',})
    

    All my inputs have the attribute autocomplete="off"

提交回复
热议问题