there is a "!" before function, why?
http://twitter.github.io/bootstrap/assets/js/bootstrap-transition.js
! function($) {
//......
}(window.jQuery);
there is a "!" before function, why?
http://twitter.github.io/bootstrap/assets/js/bootstrap-transition.js
! function($) {
//......
}(window.jQuery);
The !
causes the function to be treated as an expression, meaning it has the same effect as this:
(function($) {
//......
})(window.jQuery);