@sammffl
2016-03-04T02:59:35.000000Z
字数 323
阅读 620
小技巧
jQuery.noConflict();
(function ($) {
$(function () {
})
})(jQuery);
var dom = {};
dom.query = jQuery.noConflict(true);
// Do something with the new jQuery
dom.query("div p").hide();
// Do something with another library's $()
$("content").style.display = 'none';
// Do something with another version of jQuery
jQuery("div > p").hide();