`

jQuery之clone方法的Bug

 
阅读更多

最近偶然发现项目中有个后台请求在IE7、8下一切正常,而在IE9、chrome等浏览器下则总是报出异常,经过debug之后发现,竟然是jQuery的clone方法在复制select对象的时候,在IE9和chrome浏览器下会出现无法复制数据的问题。具体信息参考:http://stackoverflow.com/questions/742810/clone-isnt-cloning-select-values

 

最后我只好通过URL传递参数的方式将该对象的值传递到后台来解决这个问题(目前我们使用的版本是jQuery-1.4.2版本),不知道jQuery以后的版本是否解决了这个问题?

 

PS:看来不能盲目相信开源框架,包括java,JS等常用的开源框架,相对于商业软件来说,开源的东西Bug还是相对而言较多的。

分享到:
评论

相关推荐

    jquery的clone方法应用于textarea和select的bug修复

    测试发现,textarea和select的jquery的clone方法有问题,textarea和select的值clone的时候会丢掉,发现这个是jquery的一个bug,上不了的可以看下代码,比较简单。就是在clone的时候将val再重新赋值一下,如果知道这个...

    jQuery Clone Bug解决代码

    jQuery Clone Bug解决代码,具体看测试代码。

    jQuery最新1.4.4精简版+1.4中文手册

    (Bug) Fixed an issue where the “clone” variable was not being declared correctly (#7226) (Bug) Fixed a bug where we only change the ID on nodes that don’t already have an ID for rooted qSA (#7212)...

    jQuery 1.4.1 中文参考

    ...... ........目录.......................... 1. 速查表 10 ...12.4 提交bug及获取更新 197 12.5 changelog 198 ....................................... .......................................

    jQuery EasyUI 1.4.1 离线简体中文API文档

    注意: chm格式文档如果打不开,有可能是被杀毒软件拦截掉了,请关闭后再试,如果还是不能用,就使用exe格式的吧!另外文档全部存放在docs目录下...datetimebox:添加“cloneFrom”方法来快速创建“datetimebox”组件。

    jquery-easyui-EDT-1.5.5.7z

    numberbox:'cloneFrom'方法可用; slider:'step'属性可以设置为浮点数; menu:'findItem'方法允许用户通过任意参数查找菜单项; menubutton:添加'showEvent'和'hideEvent'属性。 New Plugin(新组件) ...

    JQuery_1.4_API开发手册

    (Bug) Fixed an issue where the “clone” variable was not being declared correctly (#7226) (Bug) Fixed a bug where we only change the ID on nodes that don’t already have an ID for rooted qSA (#7212...

    jquery-easyui-1.4.1.zip

    更新日志 Bug The combogrid has different height than other...datetimebox: Add 'cloneFrom' method to create the datetimebox component quickly.(Datetimebox:加入“cloneFrom”方法来快速创建日期时间组件。)

    JQuery EasyUI 1.4.1 离线简体中文API文档

    Bug(修复) combogrid:修复combogrid组件和其他combo组件高度不一致的问题; datagrid:修复在datagrid行元素调用“updateRow”方法的时候丢失某些类样式的问题; menubutton:修复在被禁用的按钮上使用...

    jQuery EasyUI 1.55API 中文版

    numberbox:'cloneFrom'方法可用; slider:'step'属性可以设置为浮点数; menu:'findItem'方法允许用户通过任意参数查找菜单项; menubutton:添加'showEvent'和'hideEvent'属性。 New Plugin(新组件) ...

    jQuery EasyUI 1.4.1 离线简体中文API文档 含完整开发工具包+皮肤+扩展+演示

    注意: chm格式文档如果打不开,有可能是被杀毒软件拦截掉了,请关闭后再试,如果还是不能用,就使用exe格式的吧!另外文档全部存放在docs目录下...datetimebox:添加“cloneFrom”方法来快速创建“datetimebox”组件。

    jQuery-Pulgins:我的日常工作 jQuery 插件

    Fixed the bug for the clone first li node . Optimize the code for find the ul node版本:1.0.2 日期 : 2013-10-21 11:10:06 笔记 : 。 添加滑块动画模式:默认为动画模式 . Support 3 kinds of mode : animat

    Jquery 1.3 简体中文手册

    核心 jQuery 核心函数 jQuery(expr, [context]) jQuery(html, [ownerDoc]) jQuery(elements) jQuery(callback) jQuery 对象访问 each(callback) size() length selector ...提交bug及获取更新

    JQuery 1.3 中文参考手册

    核心 jQuery 核心函数 jQuery(expr, [context]) jQuery(html, [ownerDoc]) jQuery(elements) jQuery(callback) jQuery 对象访问 each(callback) size() length selector ...提交bug及获取更新

    jQuery EasyUI 1.5.5 离线简体中文API文档 含完整开发工具包+皮肤+扩展+演示

    • numberbox:'cloneFrom'方法可用; • slider:'step'属性可以设置为浮点数; • menu:'findItem'方法允许用户通过任意参数查找菜单项; • menubutton:添加'showEvent'和'hideEvent'属性。 New Plugin(新...

Global site tag (gtag.js) - Google Analytics