jQuery 衝突解決方式

2014-10-09
如果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/

Contact

Github

Codepen

歡迎參觀我的賣場
© 2013 Copyright Digishot Web | Design Tools
Visitors【622449】
digishot webdesign studio