IE does not refresh after Ajax get/posts

前端 未结 5 674
旧时难觅i
旧时难觅i 2021-01-23 20:26

I have a small problem that I don\'t know how to deal with.

I\'ve written some jQuery post/gets which work fine in FF, Opera and Chrome. But when run from explorer (any

5条回答
  •  醉话见心
    2021-01-23 20:46

    In IE using ajax call its create cache and store this old values.when you receive the response its put catch value.so you can make cache as false.

       $.ajaxSetup({ cache: false });
    
              OR 
    
       $.ajax({  url: your need url,
                cache: false,
                type: 'get',
                data:'your parameters',
                success: function(result) {
                 //put your code here...
                }
      });
    

    you can use both in your code.but first answer is best.

提交回复
热议问题