jQuery & Mootool 兼容解决方案(原创自Zjmainstay)
插入如下函数解决兼容问题:
function mootool_jQuery_compatible(){
if(typeof(window.addEvent) == \’undefined\’) {
window.addEvent = function(a,b){
return jQuery(document).ready(b);
}
}
}
mootool_jQuery_compatible();
function mootool_jQuery_compatible(){
if(typeof(window.addEvent) == \’undefined\’) {
window.addEvent = function(a,b){
return jQuery(document).ready(b);
}
}
}
mootool_jQuery_compatible();
(function($){
window.addEvent(\’domready\’,function(){
//
});
})(jQuery);