DWZ框架中的浏览器兼容解决办法
dwz.switchEnv.js
问题描述:
在不同的浏览器中获取的对象不一样(使用Firefox时,功能失效)。
源代码:
$.post($li.find(">a").attr("href"), {}, function(html){
_hide($this);
$this.find(op.boxTitle$).html($li.find(">a").html());
navTab.closeAllTab();
$("#sidebar").find(".accordion").remove().end().append(html).initUI();
});
修改后:
$.post($li.find(">a").attr("href"), {}, function (data, textStatus, jqXHR) {
_hide($this);
$this.find(op.boxTitle$).html($li.find(">a").html());
navTab.closeAllTab();
$("#sidebar").find(".accordion").remove().end().append(jqXHR.responseText).initUI();
});

浙公网安备 33010602011771号