`
yhz61010
  • 浏览: 553032 次
  • 来自: -
博客专栏
63c13ecc-ef01-31cf-984e-de461c7dfde8
libgdx 游戏开发
浏览量:12027
社区版块
存档分类
最新评论

[原创] 让 jQuery 与 prototype 共存

阅读更多
以下是我经常使用的,让 jQuery 与 prototype 共存的方法。
欢迎大家介绍下你经常使用的共存方法。

<script src="prototype.js"></script>
<script src="jquery.js"></script>
// 注意以上 JavaScript 的顺序

$.noConflict();

jQuery(document).ready(function($){
    // 这里出现的 $ 使用的是 jQuery 的 $。
});

// 这里出现的 $ 使用的是 prototype 的 $。
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics