流量丨G7.6mb 相当于多少兆兆

jQuery 发布 1.9 正式版,最后支持 IE 6/7/8
jQuery 发布 1.9 正式版,最后支持 IE 6/7/8
jQuery 发布 1.9 正式版,最后支持 IE 6/7/8
文章目录[隐藏]
正式发布了 1.9 版本,这个版本最值得关注的,不是又增加了什么新功能,而是它去掉了哪些东西!jQuery 1.9 删除和改动了不少过时的 API,升级后可能会导致现有的程序无法兼容,为此官方还一起发布了以及升级插件(jQuery Migrate)协助开发者平稳升级。
jQuery 1.9 是最后支持 IE 6/7/8 的版本
jQuery 1.9 和正在 beta 测试的 2.0 这两个版本,它们的 API 基本上相同,之间的唯一差别就是,jQuery 1.9 还支持 IE 6/7/8 的版本,这是 jQuery 最后一个支持 IE 6/7/8 的版本,从 jQuery 2.0 起,jQuery 将只支持 IE 9+ 及其他支持 HTML5 浏览器。
jQuery 开始从牺牲对老旧 IE 的兼容性,来换取更小的体积和更快的执行效率,现在 IE 6/7/8 的用户也慢慢减少,从我爱水煮鱼的博客的访问用户来看,所有 IE 用户已经低于 30%,其中 IE8:50%,IE6:10%,IE7:9%,所以总体上 IE 6/7/8 的用户只有 20% 左右。等到 jQuery 2.0 正式版发布,这个用户占有率会更低,那时候相信直接使用 jQuery 2.0 基本没有问题。
使用 jQuery Migrate 来平稳过渡现有程序
jQuery 1.9 移除了很多已经标为过时(deprecated)的 API,如果你的程序已经避免使用这些废弃的 API 的话,则升级到 1.9 不会有什么问题,但是大部分开发者可能不会那么幸运,所以这个时候 jQuery 提供的
插件可以帮上忙,它收集了自 1.6.4 版本以来 1.9 废弃的 API。在使用 1.9/2.0 的时候,一并加载 jQuery Migrate,就可以不用更改程序继续使用,还可以通过 console.log 查看那些不相容的 API,作为修改的参考。等所有问题都修改之后,就可以不再使用 jQuery Migrate。
需要注意的是,jQuery Migrate 上线版本(Production version,jquery-migrate-1.0.0.min.js)只提供兼容而不提供生成警告信息,而开发版本(jquery-migrate-1.0.0.js)才会在 console 留下警告信息,比如:JQMIGRATE: jQuery.browser is deprecated,所以如果你希望通过 jQuery Migrate 来改进你的程序,一定要使用开发版本。
&我爱水煮鱼,如果本文对你有帮助,你可以扫描右边的二维码打赏:
你可能也喜欢
& Copyright 2017
,页面生成时间:0.000634秒。
Icons by .
Powered by .
Hosting by .修改iealert.js支持jQuery1.9+
  iealert.js使用了jQuery的live方法及$.browser属性,而jQuery1.9+已经不支持这2个方法及属性,所以要兼容高版本jQuery,需要对iealert.js代码进行修改。
注意:jQuery2+不再支持IE8-浏览器,不要导入2+以上的jQuery,jQuery会直接报错,不是iealert.js的问题。
  修改iealert.js支持jQuery1.9+源代码及样式如下
&!DOCTYPE html PUBLIC &-//W3C//DTD XHTML 1.0 Transitional//EN& &http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&&
&html xmlns=&http://www.w3.org/1999/xhtml&&
&meta http-equiv=&Content-Type& content=&text/ charset=utf-8& /&
&title&IEalert修改版:IE浏览器版本过低提示的Jquery插件&/title&
&script type=&text/javascript& src=&/ajax/jQuery/jquery-1.11.3.min.js&&&/script&
/*iealert.js修改版源代码
* IE Alert! jQuery plugin
* version 1
* author: David Nemes
* /iealert/
(function ($) {
//jQuery1.9+已经不在支持live方法,事件改为初始化成功后在调用bind方法绑定click事件,这样无论导入什么版本的jQuery都可以兼容
/*$(&#goon&).live(&click&, function () {
$(&#ie-alert-overlay&).hide();
$(&#ie-alert-panel&).hide();
var isIE = window.ActiveXObject || 'ActiveXObject'//判断是否IE浏览器
if (isIE) {
//jQuery1.9+已经不在支持$.browser属性,可以使用IE特有条件注释来判断IE浏览器
//使用IE条件注释判断是否IE8-浏览器
document.write('&!--[if lt ie 9]&&script&window.isIE8=window.showIEAlert=true&\/script&&![endif]--&');//IE8及以下
document.write('&!--[if lt ie 8]&&script&window.isIE7=true&\/script&&![endif]--&');//IE7及以下
document.write('&!--[if lt ie 7]&&script&window.isIE6=true&\/script&&![endif]--&');//IE6及以下
function initialize($obj, support, title, text) {
var panel = &&span&& + title + &&/span&&
+ &&p& & + text + &&/p&&
+ &&div class='browser'&&
+ &&li&&a class='chrome' href='/chrome/' target='_blank'&&/a&&/li&&
+ &&li&&a class='firefox' href='http://www.mozilla.org/en-US/firefox/new/' target='_blank'&&/a&&/li&&
+ &&li&&a class='ie9' href='/en-US/internet-explorer/downloads/ie/' target='_blank'&&/a&&/li&&
+ &&li&&a class='safari' href='/safari/download/' target='_blank'&&/a&&/li&&
+ &&li&&a class='opera' href='/download/' target='_blank'&&/a&&/li&&
+ &&/div&&;
var overlay = $(&&div id='ie-alert-overlay'&&/div&&);
var iepanel = $(&&div id='ie-alert-panel'&& + panel + &&/div&&);
var docHeight = $(document).height();
overlay.css(&height&, docHeight + &px&);
if (support === &ie8&) {// shows the alert msg in IE8, IE7, IE6
//if ($.browser.msie && parseInt($.browser.version, 10) & 9) {//已经加了IE8及以下判断才会进入此函数,可以去掉这个判断
$obj.prepend(iepanel);
$obj.prepend(overlay);
//if ($.browser.msie && parseInt($.browser.version, 10) === 6) {
if (window.isIE6) {//IE6判断,添加特殊样式进行就行修正
$(&#ie-alert-panel&).css(&background-position&, &-626px -116px&);
$obj.css(&margin&, &0&);
} else if (support === &ie7&) {
// shows the alert msg in IE7, IE6
//if ($.browser.msie && parseInt($.browser.version, 10) & 8) {
if (window.isIE7) {
$obj.prepend(iepanel);
$obj.prepend(overlay);
//if ($.browser.msie && parseInt($.browser.version, 10) === 6) {
if (window.isIE6) {//IE6判断,添加特殊样式进行就行修正
$(&#ie-alert-panel&).css(&background-position&, &-626px -116px&);
$obj.css(&margin&, &0&);
} else if (support === &ie6& && window.isIE6) {
// shows the alert msg only in IE6
//if ($.browser.msie && parseInt($.browser.version, 10) & 7) {//这个判断和if合并
$obj.prepend(iepanel);
$obj.prepend(overlay);
$(&#ie-alert-panel&).css(&background-position&, &-626px -116px&);
$obj.css(&margin&, &0&);
}; //end initialize function
$.fn.iealert = function (options) {
var defaults = {
support: &ie7&,
//IE版本支持,可以为ie8(ie8-都会显示提示),ie7(ie7-都会显示提示),ie6(ie6-都会显示提示)
title: &\u4F60\u77E5\u\u7684Internet Explorer\u662F\u8FC7\u65F6\u4E86\u5417?&, // title text
text: &\u4E3A\u4E86\u5F97\u\u4EEC\u7F51\u7AD9\uD\u\u9A8C\uC,\u6211\u4EEC\u5EFA\u8BAE\u60A8\u\u\u65B0\uC\u7684Internet Explorer\u\u62E9\u53E6\u4E00\u4E2Aweb\u6D4F\u89C8\u5668.\u4E00\u4E2A\u\u\u884C\u7684web\u6D4F\u89C8\u\u4E0B\u9762\u53EF\u4EE5\u627E\u5230.&br /&&br /&&h1 id='goon' style='font-size:20cursor:'&&&&\u7EE7\u7EED\u8BBF\u95EE&/h1&&
var option = $.extend(defaults, options);
return this.each(function () {
if (window.showIEAlert) {//条件注释判断IE8及以下才执行初始化判断
//if ( $.browser.msie ) {
var $this = $(this);
initialize($this, option.support, option.title, option.text);
$(&#goon&).bind(&click&, function () {
$(&#ie-alert-overlay&).hide();
$(&#ie-alert-panel&).hide();
})(jQuery);
CSS Stylesheet for IE Alert! plugin.
* ==================IE Alert样式==================
Overlay Background
#ie-alert-overlay {
width:100%;
height:100%;
background-image:url(/imgblog/3257320.png);
z-index:9999;
* html #ie-alert-overlay {
/* fixed position hack for IE6 */
z-index:9999;
Pop Up Panel
#ie-alert-panel {
height:331
background: url(/imgblog/3362322.png) no-
background-position: -1px -109
margin:-201px 0 0 -296
padding:72px 0 0 72
_position:
/* fixed position hack for IE6 */
_top:expression(300+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+'px');
/* top:300px hack for IE6 */
/* font settings */
font-family: Arial, &Helvetica Neue&, Helvetica, sans-
font-weight:
color:#333;
line-height:1.5
z-index:10000;
#ie-alert-panel p {
font-size:14
text-align:
#ie-alert-panel img {
#ie-alert-panel span {
font-size:18
margin: 0 0 20px 0;
padding:0;
#ie-alert-panel ul {
list-style:
padding:0;
#ie-alert-panel li {
margin:0 22px 0 0;
#ie-alert-panel li.last {
margin-right:0;
#ie-alert-panel a {
display:inline-
.browser {
.chrome, .firefox, .ie9, .opera, .safari {
background: url(/imgblog/3362322.png) no-
background-position: 0 0;
height: 96
margin:0 4px 0 0;
.firefox {
background-position: -292px 0;
height: 98
background-position: -179px 0;
height: 98
background-position: -90px 0;
height: 98
background-position: -387px 0;
height: 98
margin:0 4px 0 0;
&script type=&text/javascript&&
$(document).ready(function() {
$(&body&).iealert();
&div style=&margin:200 width:500
border:1px # padding:20&&
&h1&默认是低于IE8浏览器都会弹出提示框,大家想看到效果就用IE6、IE7来打开运行。已经做过修改,兼容jQuery1.9+以上的jQuery。需要注意的是jQuery2+不在支持IE8-浏览器,不要导入2+以上的jQuery,jQuery会支持报错,不是iealert.js的问题了。&/h1&
iealert.js样式图片素材如下
原创文章,转载请注明出处:
阅读(158)喜欢(0)不喜欢(0)分类:
上一篇:下一篇:常用软件推荐
原创软件推荐
jQuery 是继 prototype 之后又一个优秀的 Javascript 框架。其宗旨是―写更少的代码,做更多的事情。它是轻量级的 js 库(压缩后只有21k) ,这是其它的 js 库所不及的,它兼容 CSS3,还兼容各种浏览器(IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+)。 jQuery 是一个快速的,简洁的 javaScript 库,使用户能更方便地处理 HTML documents、events、实现动画效果,并且方便地为网站提供 AJAX 交互。 jQuery 还有一个比较大的优势是,它的文档说明很全,而且各种应用也说得很详细,同时还有许多成熟的插件可供选择。 jQuery 能够使用户的 html 页保持代码和 html 内容分离,也就是说,不用再在 html 里面插入一堆js来调用命令了,只需定义 id 即可。更细日志:该版本主要是修复了过去几周内 jQuery 1.9 版本中发现的 bug。jQuery 1.8 的正式版发布了,让我们大概看一下 jQuery 1.8..3 主要的大改动包括那几个方面。jquery-1.8.3.min.js (压缩且最小化,适合产品环境使用)jquery-1.8.3.js (未压缩版本,用于调试)JQUERY 1.8.3 Ajax#12583: IE8 HTML bug (Chinese translation)#12635: jquery 1.8.2 fails ajax calls in IE9 because it assumes cross domain when default port is in ajax urlAttributes#10943: JQuery 1.7.1 does not properly set tabindex property on cloned element in IE7Core#12690: Minimum JS File Contains non-ASCII CharacterCss#10227: $('body').show() does'nt work if body style is set to display:none#12537: element.css('filter') returns undefined in IE9Deferred#12665: Callbacks objects with &unique& flag will iterate over a function's methods when it is added a second timeEffects#8685: Animations should keep track of animation state in order to properly address stacked animations#12497: jQuery 1.8.1 transitions crashing android 2.3.4 browser#12837: All animations break after zooming a lightbox on the iPadSelector#12643: Upgrade from 1.3.2 to 1.8.2 gives an Uncaught TypeError#12648: Can not correctly detect focus for DIVs with contenteditable in Chrome and SafariSupport#12357: jQuery 1.8.0 Not parseable by XUL Runner Applications1.8.01. Sizzle 选择器引擎重新架构2. 重新改造动画处理3. 自动 CSS 前缀处理当你在 .css() 和 .animate() 中使用 CSS 属性时,jQuery 会自动根据浏览器类型来设置一些前缀,例如 .css(&user-select&, &none&) 在 Chrome/Safari 会变成 &-webkit-user-select&, 在 Firefox 变成 &-moz-user-select&, 在 IE10 则变成 &-ms-user-select&.4. 更灵活的 $(html, props)5. 超过 160 个 bug 解决并关闭6. 代码更加小7. 模块化同时 jQuery 1.8 还移除了一些 AP
jQuery插件的开发包括两种,一种是类级别的插件开发,即给jQuery添加新的全局函数,相当于给jQuery类本身添加方法。jQuery的全局函数就是属于jQuery命名空间的函数,另一种是对象级别的插件开发,即给jQuery对象添加方法。下面是小凡整理的jQuery插件大全专题,有需要的可以来尝试下哦。
jQuery UI 是一套 jQuery的页面UI插件,软件包含...
jquery开发中文api手册 jquery-1.8.3 api还有1.7 ...
jQuery树插件免费版是一个依靠 jQuery 实现的多功...
jQuery LigerUI全面优化框架图片,整理简化皮肤Sil...
高速下载器地址
适合机型:三星Note4,三星Note4 ROM
Android版本:6.0.1
ROM大小:1370.00 MB
本站提供的软件会测试再上传,但无法保证所有软件都没有问题,如果您发现链接错误或其它问题,请在评论里告诉我们!
下载点支持点击下载(IE图标)或(迅雷图标),若直接点击下载速度太慢,请尝试点击其他的下载点,若文件太大请使用高速下载器。为确保下载的文件能正常使用,请使用最新版本解压本站软件。
建议大家谨慎对待所下载的文件,大家在安装的时候务必留意每一步!关于或的有关提示,请自行注意选择操作。
本站所有资源均是软件作者、开发商投稿、网上搜集,任何涉及商业盈利目的均不得使用,否则产生的一切后果将由您自己承担!将不对任何资源负法律责任。所有资源请在下载后24小时内删除。JavaWeb(53)
& & 先前的项目使用的是datatables 1.9,为了使用1.10版本的reload方法,所以想使用1.10,但发现更换了1.10的,表格就绘制不出来,老是提示未定义的错误,经过排查是因为这句话:
//设置按什么顺序定义表的控制元素在页面上出现
&sDom& : &&r&t&'float_left'i&&'float_right_nexpage'p&&'float_right_display'l&&&,& & 上述的class是自定义的,主要是为了自己去布局,如下class:
.float_left {
min-height: 20px !
padding-top: 10
.float_right_res {
min-height: 20px !
padding-left: 15
padding-right: 15
padding-top: 10
.float_right_display {
min-height: 20px !
padding-left: 15
padding-right: 15
padding-top: 10
.float_right_nexpage {
min-height: 20px !
padding-left: 15
padding-right: 15
padding-top: 10
.float_left {
min-height: 20px !
padding-top: 10
.float_right {
min-height: 20px !
padding-left: 15
padding-right: 15
padding-top: 10
& & & & &上述的写法在1.9的版本是可以正常显示的,一旦切换到1.10就报错了,改成如下的形式就好了:
&dom&: 'T&&clear&&lfrtip',
& & & & &后面发现可以使用如下的方法,跟原来的变成&&,也显示正常,这个实现,显示多少页和分页的信息在表格的右下角,如下图:
& & & class的类如下:
.float_left {
min-height: 20px !
padding-top: 10
.float_right_res {
min-height: 20px !
padding-left: 15
padding-right: 15
padding-top: 10
.float_right_display {
min-height: 20px !
padding-left: 15
padding-right: 15
padding-top: 10
.float_right_nexpage {
min-height: 20px !
padding-left: 15
padding-right: 15
padding-top: 10
.float_left {
min-height: 20px !
padding-top: 10
.float_right {
min-height: 20px !
padding-left: 15
padding-right: 15
padding-top: 10
& & & &2.还有一个区别是:1.10和1.9的设置某些列显示与否方法进行了更改,原来的是有错的,需要更改为最新的,如下:
// 表示隐藏操作
dataTable.column($(this).attr('value')).visible(false);//1.10的版本
dataTable.fnSetColumnVis($(this).attr('value'), false);//1.9的版本& & &3.还有一个区别是1.9版本的:$('#sample_1').DataTable().fnDestroy();这样写会出错,可以使用destroy方法
& & & & &记录一下这个错误,可能是1.10的样式变了,不能这样使用了吧,有大神可以交流一下。参考这个链接:http://download.csdn.net/detail/u51436
& & &3.每次点击查询,重新生成的表格,会报这样的错误:DataTables warning: table id=sample_1 - Cannot reinitialise DataTable
& & & &解决方法是增加一个属性:&retrieve&: true,//保证只有一个table实例,(原文官方的解决方式有很多种:https://datatables.net/manual/tech-notes/3)
& & 4.遇到第四个问题使用了固定列的插件,如果采用new的形式后台会发送两次请求,影响速度,所以使用属性的形式,如下:
&fixedColumns&:
&iLeftColumns& : 3,
&sHeightMatch& : &auto&
// qiulinhe:日16:51:42:设置前三列固定,冻结不随着滚动,这个会发两次,必须使用属性的形式
new $.fn.dataTable.FixedColumns(wageNowTable, {
&iLeftColumns& : 3,
&sHeightMatch& : &auto&
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:270654次
积分:5216
积分:5216
排名:第4352名
原创:203篇
转载:103篇
评论:134条
(9)(4)(12)(20)(17)(18)(10)(6)(14)(14)(11)(7)(15)(8)(15)(9)(16)(10)(15)(17)(24)(1)(3)(41)您的位置:
→ jQuery 1.9.1 正式版
jQuery 1.9.1 正式版
网友评分:8
软件大小:225KB
软件语言:英文
软件类型:国外软件
软件类别:免费软件 / 编程工具
更新时间:
软件等级:
官方网站:
运行环境:WinAll, WinXP
软件厂商:
顶好评:50%
同类相关软件
110KB/中文/10.0100KB/中文/5.0491KB/中文/5.097KB/中文/10.06.2M/中文/10.0
是继 prototype 之后又一个优秀的
框架。其宗旨是写更少的代码,做更多的事情。它是轻量级的 js 库(压缩后只有21k) ,这是其它的 js 库所不及的,它兼容 CSS3,还兼容各种(IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+)。&jQuery 是一个快速的,简洁的 javaScript 库,使用户能更方便地处理 HTML documents、events、实现动画效果,并且方便地为网站提供 AJAX 交互。&jQuery 还有一个比较大的优势是,它的文档说明很全,而且各种应用也说得很详细,同时还有许多成熟的插件可供选择。 jQuery 能够使用户的 html 页保持代码和 html 内容分离,也就是说,不用再在 html 里面插入一堆js来调用命令了,只需定义 id 即可。更细日志:该版本主要是修复了过去几周内 jQuery 1.9 版本中发现的 bug。jQuery 1.8 的正式版发布了,让我们大概看一下 jQuery 1.8..3 主要的大改动包括那几个方面。jquery-1.8.3.min.js (压缩且最小化,适合产品环境使用)jquery-1.8.3.js (未压缩版本,用于调试)JQUERY 1.8.3&&Ajax#12583: IE8 HTML bug (Chinese translation)#12635: jquery 1.8.2 fails ajax calls in IE9 because it assumes cross domain when default port is in ajax urlAttributes#10943: JQuery 1.7.1 does not properly set tabindex property on cloned element in IE7Core#12690: Minimum JS File Contains non-ASCII CharacterCss#10227: $('body').show() does'nt work if body style is set to display:none#12537: element.css('filter') returns undefined in IE9Deferred#12665: Callbacks objects with &unique& flag will iterate over a function's methods when it is added a second timeEffects#8685: Animations should keep track of animation state in order to properly address stacked animations#12497: jQuery 1.8.1 transitions crashing android 2.3.4 browser#12837: All animations break after zooming a lightbox on the iPadSelector#12643: Upgrade from 1.3.2 to 1.8.2 gives an Uncaught TypeError#12648: Can not correctly detect focus for DIVs with contenteditable in Chrome and SafariSupport#12357: jQuery 1.8.0 Not parseable by XUL Runner Applications1.8.01. Sizzle 选择器引擎重新架构2. 重新改造动画处理3. 自动 CSS 前缀处理当你在 .css() 和 .animate() 中使用 CSS 属性时,jQuery 会自动根据浏览器类型来设置一些前缀,例如 .css(&user-select&, &none&) 在 Chrome/Safari 会变成 &-webkit-user-select&, 在 Firefox 变成 &-moz-user-select&, 在 IE10 则变成 &-ms-user-select&.4. 更灵活的 $(html, props)5. 超过 160 个 bug 解决并关闭6. 代码更加小7. 模块化同时 jQuery 1.8 还移除了一些 APAdvanced/Experimental OptionsPast Releases1.9.0&1.8.3&1.8.2&1.8.1&1.8.0&1.7.2&1.7.1&1.6.4&1.6.3&
猜你喜欢 JQuery
专题是由绿色资源网小编为用户提供的软件大全,其内容包含中文手册官方下载插件等,让更好喜欢的编程爱好者和程序员们更方便快捷地下载此软件,有需要者欢迎到绿色资源网下载介绍是继之后又一个优秀的库。它是轻量级
其他版本下载
jQuery 1.9.1 正式版
软件无法下载或下载后无法使用,请点击报错,谢谢!
请描述您所遇到的错误,我们将尽快予以修正,谢谢!
*必填项,请输入内容
本类下载排行
1.01 1.32 2.33 1.74 2.55 3.56 3.27 5.28 5.89 .510 .811 4.112 5.113 6.614 4.415
本类精品软件
3.2M/英文/4.430.3M/中文/1.3753KB/中文/5.8439.2M/英文/5.13.60G/中文/6.0183.2M/中文/5.719.5M/中文/1.2
装机必备软件
本类集合软件

我要回帖

更多关于 4g网络相当于几兆宽带 的文章

 

随机推荐