ajax xmlhttp.responsetext,Ajax:xmlhttp.responseText响应显示完整的内部HTML而不是关闭所需文本...
這是我工作的Ajax函數,但在調用函數后,它會在HTML標記+ required_text中提供響應。Ajax:xmlhttp.responseText響應顯示完整的內部HTML而不是關閉所需文本
價值變量 “
< /font>
丹尼爾”
價值變量
“丹尼爾”
function call_funct(str){
if (str=="")
{
document.getElementById("scat").innerHTML="";
return;
}
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
value = xmlhttp.responseText;
}
}
xmlhttp.open("post","remote.php?raw_id"+str,true);
xmlhttp.send();
}
2014-04-02
SDA
+0
精確的一兩件事請你確定你的PHP腳本沒有返回的HTML +的響應,否則包括更多的代碼。 –
總結
以上是生活随笔為你收集整理的ajax xmlhttp.responsetext,Ajax:xmlhttp.responseText响应显示完整的内部HTML而不是关闭所需文本...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2020计算机报名要提前多久,2020年
- 下一篇: win2008文件服务器fs,文件服务器