thinkPHP 里面 ajax POST传值传不上去 怎么回事,,但是可以接收php传下来的值
functionusernamecheck(){url1="registercheck";username1=document.getElementById('usern...
function usernamecheck() {
url1="registercheck";
username1 = document.getElementById('username').value;
var ajx = new XMLHttpRequest();
ajx.onreadystatechange = function (){
if(ajx.readyState == 4 && ajx.status == 200) {
console.log(ajx.responseText);
document.getElementById("u").innerHTML = ajx.responseText;
}
}
ajx.open('post', url1,true);
console.log(username1);
ajx.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajx.send("name="+username1); 展开
url1="registercheck";
username1 = document.getElementById('username').value;
var ajx = new XMLHttpRequest();
ajx.onreadystatechange = function (){
if(ajx.readyState == 4 && ajx.status == 200) {
console.log(ajx.responseText);
document.getElementById("u").innerHTML = ajx.responseText;
}
}
ajx.open('post', url1,true);
console.log(username1);
ajx.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajx.send("name="+username1); 展开
1个回答
2015-12-05
展开全部
1. 就是合并文本文件,并且从第2个文件起不要合并第一行.
2. 多加了一个功能,就是支持2个以上的文件合并.
2. 多加了一个功能,就是支持2个以上的文件合并.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询