你要是简单应用直接用xmlhttp多好,干嘛非要摆弄那框架,都是噱头,个人意见欢迎拍砖!
function test(){
var xmlhttp = null;
try{
xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
}
catch(e){
try{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e2){}
}
var div = document.getElementById('show').innerHTML;
xmlhttp.onreadystatechange=function(){
if ( xmlhttp.readyState==4 ){
document.getElementById('show').innerHTML = xmlhttp.responseText;
}
};
xmlhttp.open("GET","b.php?action=remove&value="+div,true);
xmlhttp.send(null);
}//在后台处理脚本中,直接写入到数据库就行,想要显示,echo出要显示的html直接到div 中
function test(){
var xmlhttp = null;
try{
xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
}
catch(e){
try{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e2){}
}
var div = document.getElementById('show').innerHTML;
xmlhttp.onreadystatechange=function(){
if ( xmlhttp.readyState==4 ){
document.getElementById('show').innerHTML = xmlhttp.responseText;
}
};
xmlhttp.open("GET","b.php?action=remove&value="+div,true);
xmlhttp.send(null);
}//在后台处理脚本中,直接写入到数据库就行,想要显示,echo出要显示的html直接到div 中
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货