4

我已使用 ajax 功能进行分页。此功能在其他浏览器(FF,CHROME)中运行良好,接受 IE 浏览器。我收到以下行的错误,因为此行上的错误。

提前感谢

if (req) {
  var th = this;
  req.onreadystatechange = function() {
    var s = req.readyState;
    if (s == 4) {
      // Avoid memory leak by removing closure.
      req.onreadystatechange = th.dummy;
      // Remove possible junk from response.
      var responseText = req.responseText;//Error on this line
      try {
        // Call associated dataReady().
        eval(responseText);
      } catch (e) {
        Subsys_JsHttpRequest_Js.dataReady(id, "JavaScript code generated by backend is invalid!\n"+responseText, null);
      }
    } else {
      th.readyState = s;
      if (th.onreadystatechange) th.onreadystatechange()
    }
  };

  this._id = id;
}
4

1 回答 1

3

根据Microsoft 将错误消息描述为与编码相关的错误消息,在服务器端的 AJAX 输出上设置适当的编码。

于 2012-12-22T06:17:53.203 回答