网站建设资讯

NEWS

网站建设资讯

jquery不兼容,jquery不兼容ie解决

jquery 不兼容ie7问题

如果其它浏览器都正常的话,可能就是你的jq版本太高了,实际上这段代码用1.8.3就可以。如果你的版本太高,试试下载低版本的jq。

目前创新互联建站已为上千家的企业提供了网站建设、域名、网络空间、网站托管、企业网站设计、栾川网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。

jquery不兼容低版本ie浏览器怎么解决办法

jQuery新版本已经不再进行IE低版本(IE6、IE7、IE8)的兼容性处理。

如果项目需要兼容IE低版本,需要使用jQuery1.x版本,从2.x开始已经不兼容IE6、7、8了。

以下为jQuery官网的通知:

jQuery 2.x has the same API as jQuery 1.x, but does not support Internet Explorer 6, 7, or 8. All the notes in the jQuery 1.9 Upgrade Guide apply here as well. Since IE 8 is still relatively common, we recommend using the 1.x version unless you are certain no IE 6/7/8 users are visiting the site. Please read the 2.0 release notes carefully.

翻译如下:

jQuery 2.x和jQuery的API用法相同,但是不再支持IE6、7、8。

1.9版本中的所有升级向导信息同样适用于2.x

由于IE8仍然用户较多,因此建议使用1.x版本,除非确定没有用IE6、7、8的用户访问网站。

请仔细阅读2.0的发布信息。

怎么解决jquery与IE不兼容

解决jquery与IE不兼容:

代码:

function getuser(stuno){

$.getJSON("users_findbystuno.action",{stuno:stuno,d:new Date().getTime()}, function(json){

var $name = $("#re_name");

$name.empty();

if(json.length 0){

for(var i = 0; i json.length; i++){

var opt = new Option();

opt.value= json[i].name;

opt.text= json[i].name;

$name.append(opt);

}

}else{

var opt = new Option();

opt.text= "该学号不存在";

$name.append(opt);

}

});

}

页面:

form method="post" action="repair_add.action" id="addForm" style="padding-top:5px;"

table width="100%" class="pn-ftable" cellpadding="2" cellspacing="1" border="0"

trtd width="10%" class="pn-flabel pn-flabel-h"span class="pn-frequired"*/span输入学号:/tdtd colspan="1" width="80%" class="pn-fcontent" input type="text" size="40" maxlength="80" id="stuno" name="stuno" onchange="getuser(this.value)"//td/tr

trtd width="10%" class="pn-flabel pn-flabel-h"span class="pn-frequired"*/span报修人:/td

td colspan="1" width="80%" class="pn-fcontent"select name="repairs.re_name" id="re_name" /select/td/tr

/form

jquery 在有些IE8下是否不兼容

当然有不兼容的地方啊,但只是极少数地方,也要看看你的jquery包都是哪个版本的~

建议用1.8.3版本最稳定,1.4.3也是个稳定版本。但用新不用旧还是1.8.3吧,2.0后都不支持IE 6 7 8了

Jquery不同版本之间不兼容

最好还是统一版本啊,你可以把1,4的grid换成1.8的,应该也不难啊,去百度搜索就应该有的。


网页名称:jquery不兼容,jquery不兼容ie解决
标题路径:http://cdweb.net/article/dsdcgos.html