首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

[原创] 让 jQuery 与 prototype 共处

2012-08-22 
[原创] 让 jQuery 与 prototype 共存以下是我经常使用的,让 jQuery 与 prototype 共存的方法。欢迎大家介绍

[原创] 让 jQuery 与 prototype 共存
以下是我经常使用的,让 jQuery 与 prototype 共存的方法。
欢迎大家介绍下你经常使用的共存方法。

<script src="prototype.js"></script><script src="jquery.js"></script>// 注意以上 JavaScript 的顺序$.noConflict();jQuery(document).ready(function($){    // 这里出现的 $ 使用的是 jQuery 的 $。});// 这里出现的 $ 使用的是 prototype 的 $。

热点排行