发现只是中文不能提交,英文和数字没问题,但是安卓端正常
var xhr1 = new plus.net.XMLHttpRequest();
xhr1.open("GET", apiurl + "SaveComment?id=" + id + "&commentcontent=" + commentcontent + "&type=article" + "&contentid=" + contentid);
xhr1.send();
//alert();
//alert(xhr1.readyState);
xhr1.onerror=function(e){
alert(e.lengthComputable);
};
xhr1.onload = function() {
var res = xhr1.responseText;
//alert(res)
if(res == "评论成功") {
mui.toast(res);
document.getElementById('comshow').style.display = 'block';
document.getElementById('comhide').style.display = 'none';
location.reload();
} else {
mui.toast(res);
}
};
乔军
- 发布:2019-03-12 21:40
- 更新:2019-03-12 21:40
- 阅读:998
0 个回复