if(window.XMLHttpRequest)
{
var xmlhttp = new XMLHttpRequest();  //A
}A句有什么用?既然通过if条件window.XMLHttpRequest判断,说明window.XMLHttpRequest存在,为什么还要再创建一遍?