这种方法适用于JS/AAJX/PHP/JSON,但当我将请求转换为JQuery时,IE再次开始缓存结果。。。场景是,当用户更改列表框(my_lstbx)中的选择选项时,会调用php/ajax,结果会返回到数组中。
$(document).ready(function() {
$('#my_lstbx').change(function() {
$.getJSON('Code/my_details.php'+'?'+'Math.round(new Date().getTime())', {request_id:this.value}, function(response) {
.......
........
.........
这是我之前问过的JS版本,它正在运行-PHP-IE没有';t显示数据库中的更新值。Chrome、FF、Opera-OK
您将Math.round(new Date().getTime())
作为字符串传递!:D它不会被执行,但永远都是一样的。
更改为:
$.getJSON('Code/my_details.php?' + new Date().getTime(), {request_id:this.value}, function(response) {