【发布时间】:2012-02-24 19:44:41
【问题描述】:
我在网站上使用 ajax 脚本 (smartajax) 来加载页面, 但由于某种原因,它在某些页面上崩溃了。 firebug 在 jquery.min v 1.5.2 中说明了这个函数的问题:
noop: function(){},
globalEval: function(a) {
if (a && i.test(a)) {var b = c.head || c.getElementsByTagName("head")[0] || c.documentElement,
e = c.createElement("script");d.support.scriptEval()? e.appendChild(c.createTextNode(a)) : e.text = a,b.insertBefore(e,b.firstChild), b.removeChild(e)}},nodeName: function (a, b) {return a.nodeName && a.nodeName.toUpperCase() === b.toUpperCase()},
当我删除这个功能页面不粉碎,而且ajax也不好用???
在这里我如何调用 ajax:
SmartAjax_load('js/smartajax/', function(){SmartAjax.isDebug = false;SmartAjax.setOptions({cache: false,reload:false,containers[{selector: '#container'}],before:function({jQuery('#ajaxloader').show();SmartAjax.proceed();},done:function({jQuery('#ajaxloader').hide();}});SmartAjax.bind('a[rel=zcommunity]');}, true);
请问错误或任何想法在哪里? 谢谢
【问题讨论】: