Guest User

Untitled

a guest
Aug 17th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Can jQuery's $ interfere with other libraries?
  2. (function($) {
  3. // jQuery code
  4. })(jQuery)
  5.  
  6. jQuery.noConflict();
  7.  
  8. function init() {
  9. var $ = window.jQuery;
  10. // do stuff with $
  11. }
  12. init();
  13.  
  14. $(function() {
  15. // code
  16. });
  17.  
  18. jQuery(function($) {
  19. // $ is jQuery here
  20. });
Add Comment
Please, Sign In to add comment