Problem description :

In the use of JqueryEasyUI when , Found in IE Next $('#table').datagrid('reload'); Invalid , The data is not refreshed , The reason is , Because when you refresh ,datagrid Requested url There is no change ,IE Just get the data from the browser cache , The return is 302 Response code .

terms of settlement :

stay $('#table').datagrid('reload'); Previous revision $('#table') Of url, You can add a timestamp parameter , Modify the code like this :

 var url = $('#table').datagrid('options').url;
if (url.indexOf("_t=") > 0) {
url = url.replace(/_t=\d+/, "_t=" + new Date().getTime());
} else {
url = url.indexOf("?") > 0
? url + "&_t=" + new Date().getTime()
: url + "?_t=" + new Date().getTime();
}

Copyright notice : This article is an original blog article , No reprint without the permission of the blogger .

JqueryEasyUI solve IE Next datagrid Problems that cannot be refreshed classification : JavaScript JqueryEasyUI 2014-09-20 10:05 510 Human reading Comment on (1) More related articles in my collection

  1. Comprehensive analysis sizeof( Next ) classification : C/C++ StudyNotes 2015-06-15 10:45 263 Human reading Comment on (0) Collection

    The following code uses the platform Windows7 64bits+VS2012. sizeof Acting on basic data types , On a specific platform and in a specific compilation , The result is certain , If you use sizeof Calculate the construction type : Structure . Union and class size ...

  2. JqueryEasyUI solve IE Next datagrid Problems that cannot be refreshed

    Problem description : In the use of JqueryEasyUI when , Found in IE Next $('#table').datagrid('reload'); Invalid , The data is not refreshed , The reason is , Because when you refresh ,datagrid Requested url no ...

  3. EasyUI - DataGrid Go to the blank scroll bar on the right classification : JavaScript 2014-09-03 10:46 1090 Human reading Comment on (2) Collection

    be familiar with  EasyUI - DataGrid Children's shoes should notice such a scene : I want to get rid of this , I found the following information , It turns out that some people are just as tangled :http://www.cnblogs.com/hantianwei/p/3440 ...

  4. C# Multithreading ( Next ) classification : C# Threads 2015-03-09 10:41 153 Human reading Comment on (0) Collection

    Four . Automatic management of multithreading ( Thread pool ) In a multithreaded program , There are two things that happen very often : A situation : In the application , Threads spend most of their time waiting , Waiting for something to happen , The response can then be given This is commonly used ThreadPool( Line ...

  5. How to solve Android SDK Unable to download Package The problem of classification : H1_ANDROID 2013-09-09 10:26 1199 Human reading Comment on (0) Collection

    Reprinted from :http://jingyan.baidu.com/article/8275fc86dbe84046a03cf69d.html Some users are installing Android SDK after , open Android SD ...

  6. linux Under the c Program typesetting tools :indent classification : linux 2014-06-14 20:05 720 Human reading Comment on (0) Collection

    Linux There's a convenient c Language program typesetting tool , Just choose the right parameters , You can easily make your own programs have a unified style . Of course, the first thing to install indent, Carry out orders :apt-get install indent indent ...

  7. JqueryEasyUI solve IE The problem of page disorder when loading classification : JavaScript JqueryEasyUI 2014-09-20 09:50 545 Human reading Comment on (1) Collection

    Problem description : Always thought jqueryeasyui stay IE The rendering effect is not very good under , Especially when you first enter the page , The page will be out of order , Although it was a flash , But the user experience is not good : This can be done through onload when , Add a mask layer , ...

  8. Windows Under the platform Oracle12c Use PDB Database creation SDE The problem of classification : oracle sde 2015-06-12 11:03 88 Human reading Comment on (0) Collection

    Windows Under the platform Oracle12c Use PDB Database creation SDE The problem of Oracle 12C Introduced in CDB And PDB New features , stay ORACLE 12C The multi rent user environment introduced by database (Multitenant ...

  9. Baidu editor ueditor Insert table without border , There is no color solution 2015-01-06 09:24 98 Human reading Comment on (0) Collection

    Baidu rich text editor .. Very powerful .. - - , But some BUG.. There is really no solution .. I've been using this recently , It is found that all the uploaded forms have no frame .. The solution is as follows : Reprinted .. Baidu editor ueditor After inserting a table , In the editing process ...

Random recommendation

  1. Cannot connect to the Docker daemon. Is the docker daemon running on this host?

    Solution docker-machine restart&&eval "$(docker-machine env default)"&&docker- ...

  2. Imitation QQ War — Server building (ServerSocket)

    ServerSocket( The server ): ServerSocket yes JAVA Class for building a server provided in : At the customer / In server communication mode , The server needs to create a listening port ServerSocket, ServerS ...

  3. PL/SQL Developer and instantclient Client installation configuration ( Image & Text )

    One : PL/SQL Developer install Download the installation file to install , My version number here is PLSQL7.1.4.1391, The installation directory is :D:\soft\PLSQLDeveloper Two :instantclient ...

  4. Javascrip operation json Method

    var str1 = '{ "name": "cxh", "sex": "man" }'; var data=eval( ...

  5. HDU2149-Good Luck in CET-4 Everybody!( game , Beat the watch to find the rules )

    Good Luck in CET-4 Everybody! Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K ...

  6. how to download image from any web page in java Download the pictures

    http://stackoverflow.com/questions/5882005/how-to-download-image-from-any-web-page-in-java (throws I ...

  7. Various types of custom components of wechat applets

    Because I am developing a small program project recently , During this period, I spent a little time studying small programs , At the same time, I also found some cases of online Daniel , Share some custom components here , Part of the code is copy Daniel's case , There are partners who are interested in small programs , You're welcome ! Source code download address :ht ...

  8. How to modify Recovery String resources for

    Preface : In practice ROM Modifying ,Recovery It's very common to see the changes of , This article focuses on how to modify Recovery character string .   First of all, let's understand the general process . 1.screen_ui.cpp Medium Screen ...

  9. Two Html It's worth passing between pages

    The value page :<a href='stockProductInfo.html?prdId="+v.prdID+"' target='_blank'></html> ...

  10. swiper Shuffling figure ( Reverse automatic switching is similar to infinite loop )

    swiper Plug in carousel chart , The default rotation sequence is from right to left , The first one , The second , Third sheets , And then it's visible to the naked eye, from the third one, from left to right, back to the first one , In this way, some of the visual experience is not high , , But it still works swiper The property of itself is changed to infinite loop ...