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();
                });

 

 

posted @ 2013-10-15 12:00  HUGO.CM  阅读(722)  评论(0编辑  收藏  举报