使用 2 JQuery 个版本
Use 2 JQuery versions
我是 Themeforest 的作者,今天我收到 Envato 的消息,告诉我必须使用最新版本的 jQuery 才能使我的 html 模板获得批准,但是当我使用最新版本 ( http://www.pixedelic.com/plugins/camera/ ) 的相机滑块消失。
我能做什么 ?
我需要帮助
谢谢
您可以使用$.noConflict( true )
<script src="other_lib.js"></script>
<script src="jquery.js"></script>
<script>
$.noConflict();
jQuery( document ).ready(function( $ ) {
// Code that uses jQuery's $ can follow here.
});
// Code that uses other library's $ can follow here.
</script>
有关 jquery noConflict();
的更多信息,请参阅 THIS
我是 Themeforest 的作者,今天我收到 Envato 的消息,告诉我必须使用最新版本的 jQuery 才能使我的 html 模板获得批准,但是当我使用最新版本 ( http://www.pixedelic.com/plugins/camera/ ) 的相机滑块消失。 我能做什么 ? 我需要帮助 谢谢
您可以使用$.noConflict( true )
<script src="other_lib.js"></script>
<script src="jquery.js"></script>
<script>
$.noConflict();
jQuery( document ).ready(function( $ ) {
// Code that uses jQuery's $ can follow here.
});
// Code that uses other library's $ can follow here.
</script>
有关 jquery noConflict();
的更多信息,请参阅 THIS