如果jquery和其他libery有出現衝突的時候,且libery又必須併存時,jquery有提供解決衝突的寫法,如下:
$.noConflict();
jQuery( document ).ready(function( $ ) {
// Code that uses jQuery's $ can follow here.
}); // Code that uses other library's $ can follow here.
參考: http://api.jquery.com/jquery.noconflict/