插入如下函数解决兼容问题:
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);

版权声明:本文为Zjmainstay原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/Zjmainstay/archive/2012/05/16/jQuery_Mootool_compatible.html