magento中jquery prototype 兼容
来源:互联网 发布:人工智能危机 编辑:程序博客网 时间:2024/06/01 22:14
第一种:先加载prototype,后加载jquery
// Use Prototype with $(…), etc. $('someid').hide(); </script> </head> <body></body> </html> ———————————— 如上所示,红色部分就是对jquery做的一个兼容处理,这样就可以达到 jquery和prototype兼容了。jQuery.noConflict();要放在 最前面,而jquery的代码就要放到 jQuery(document).ready(function($){ ……… }); 内部。
第二种:先加载jquery,后加载prototype
如上所示,不用调用 jQuery.noConflict();,使用 jQuery(document).ready(function(){ …….. });,在这个函数内部使用jQuery代替$。
- magento中jquery prototype 兼容
- magento中jquery prototype 兼容
- Magento中使用jQuery与Prototype库冲突的解决办法
- jquery prototype 兼容
- jquery prototype 兼容
- magento -- 在magento模板开发中如何共用jQuery与Prototype库
- [转]magento -- 在magento模板开发中如何共用jQuery与Prototype库 .
- jQuery与prototype不兼容
- magento的prototype何时转换成jQuery啊
- magento 添加jquery已经解决和prototype的冲突
- magento 添加jquery已经解决和prototype的冲突
- magento引入jquery库和prototype库冲突的解决办法
- 在Magento中使用jquery.
- magento中如何使用Prototype对form进行验证
- jQuery 与其它 js(Prototype) 库兼容共存
- magento---jquery
- magento的prototype表单验证
- magento -- 提供压缩版prototype.js下载
- TinyOS、NesC程序开发经验谈
- 在SQL Server数据库之间进行数据导入导出
- 查看Solaris系统的内存大小及使用情况
- ASP.NET 2.0无刷新页面新境界(转载)
- HTTP referer
- magento中jquery prototype 兼容
- 天天学英语
- 在VS2010项目中引用Lib静态库(以Openssl为例)
- 什么是ASP.NET
- 还原数据库
- ASP.NET2.0新特性概述
- 5哲学家就餐
- 2011年的11个网页设计趋势热点
- 电脑鼠标问题