0
if(jQuery.browser.mozilla||jQuery.browser.opera)document.removeEventListener("DOMContentLoaded",jQuery.ready,!1),document.addEventListener("DOMContentLoaded",function(){jQuery.ready()},!1);jQuery.event.remove(window,"load",jQuery.ready);jQuery.event.add(window,"load",function(){jQuery.ready()});
jQuery.extend({includeStates:{},include:function(c,a,d){typeof a!="function"&&!d&&(d=a,a=null);c=c.replace("\n","");jQuery.includeStates[c]=!1;var b=document.createElement("script");b.type="text/javascript";b.onload=function(){jQuery.includeStates[c]=!0;a&&a.call(b)};b.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(jQuery.includeStates[c]=!0,a&&a.call(b))};b.src=c;d?(d.constructor!=Array&&(d=[d]),setTimeout(function(){var a=!0;jQuery.each(d,function(c,b){if(!b())return a=
!1});a?document.getElementsByTagName("head")[0].appendChild(b):setTimeout(arguments.callee,10)},10)):document.getElementsByTagName("head")[0].appendChild(b);return function(){return jQuery.includeStates[c]}},readyOld:jQuery.ready,ready:function(){jQuery.isReady||(imReady=!0,jQuery.each(jQuery.includeStates,function(c,a){if(!a)return imReady=!1}),imReady?jQuery.readyOld.apply(jQuery,arguments):setTimeout(arguments.callee,10))}});

jQuery.noConflict();

它与加载图像有关,即使它被加载到缓存中。在 1.7.2 版本中一切正常,但现在我遇到了 promises() 的问题

Uncaught TypeError: Object function (){jQuery.isReady||(imReady=!0,jQuery.each(jQuery.includeStates,function(c,a){if(!a)return imReady=!1}),imReady?jQuery.readyOld.apply(jQuery,arguments):setTimeout(arguments.callee,10))} has no method 'promise' 
4

1 回答 1

0

我看到你正在使用“jQuery.browser”......它在 Jquery 1.8 中已被弃用

于 2012-09-05T00:27:49.113 回答