//发出HTTP请求添加,否则不兼容FF的ajax.open("POST",urlRedirect,true);ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");ajax.send(null);