IE必须关闭jQuery才能正常工作的事件 [英] IE must close for event with jQuery to work

查看:98
本文介绍了IE必须关闭jQuery才能正常工作的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

    <script type="text/javascript">
    function getbillno(tbl){

    $.get("getbillno.php?tbl="+ tbl, function(bill){
    $("#billno").val(bill); });
    } 
    </script>

QUICK概述:function getbillno(tbl)返回默认值为1的显示(ELSE echo1 )。

QUICK Overview : function getbillno(tbl) returns a display of 1 as a default (ELSE echo "1").

问题:在IE中,无论我显示什么,即使页面是空白的,它总是显示1。

PROBLEM : In IE no matter what I display even when the page is a blank, it would always display 1.

我尝试关闭IE(9)而不是刷新,它确实显示正确的值。我更改了代码中的值,然后刷新IE,它会显示之前的值 - 这是我重新打开IE后的值。

Instead of hitting refresh, I tried closing IE(9) and it did display the right value. I changed the value in my code again then refreshed IE, it would display the one before that - it's the value after I reopened IE.

问题:是否有设置或无论我在IE(9)中要更改或配置什么?

Question : Is there a setting or whatever it is that I have to change or configure in IE(9)?

在我发现关闭浏览器会做什么之前,我一直在互联网上提问。我以为这跟我的程序有关,或者也可以这样做 - 所以这里有几个链接。作为背景,因为我不知道看到我的其他问题会改变很多。

I've been asking questions around the internet before I found out what closing the browser would do. I thought it had something to do with my program, or maybe it does - so here are a few links. Just as background because I'm not sure if seeing my other questions would change much.

[1] $.get在IE中无法使用
[2] 有没有办法使用$ .get以外的事件调用php?

推荐答案

IE缓存获取请求

您可以使用 cache:false 参数在jquery中获取

You can disable this with cache: false parameter in jquery get


默认值:true,false for dataType'script'和'jsonp'如果设置为
false,它将强制所请求的页面不被浏览器缓存。
将缓存设置为false还会在URL中附加一个查询字符串参数
_ = [TIMESTAMP]。

Default: true, false for dataType 'script' and 'jsonp' If set to false, it will force requested pages not to be cached by the browser. Setting cache to false also appends a query string parameter, "_=[TIMESTAMP]", to the URL.

这篇关于IE必须关闭jQuery才能正常工作的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆