[英]Jquery POST method doesn't work on IE8
My Jquery (version: 1.8.1) code: 我的Jquery(版本:1.8.1)代码:
$(document).ready(function() {
$('#Vehicle-make').change(function() {
$.post(
'/cakeMotors/ModelNames/viewList/' ,
{ make_id : $('#Vehicle-make').val() } ,
function(data) {
$('#Vehicle-model').html(data);
}
);
});
});
What could it be? 会是什么呢?
IE is caching ajax urls. IE浏览器正在缓存ajax网址。 Try to put at the end of url parameter of time ticks (new Date).getTime() 尝试将时间刻度(新日期)的url参数放在末尾。getTime()
This will prevene IE to cache result. 这将防止IE缓存结果。
And yes, this is shot in the dark :) 是的,这是在黑暗中拍摄的:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.