---
title: "ajax实战，this.req.responseXML.documentElement==null"
author: "feel"
date: "2010-08-29T20:54:14Z"
tags: []
categories: ["编程语言"]
slug: "ajax-this-req-responsexml-documentelement-null"
draft: false
lastmod: "2010-08-29T20:54:14Z"
id: 750235
url: "https://feel.iteye.com/blog/750235"
---

this.req.responseXML.documentElement==null

当我测试返回值时：alert(this.req.responseXML)返回的值比预想的要多，后面有一堆html代码。

其实很简单，在后台代码Response.Write(...)时，必须还要写Response.End(),否则会出错