MDUI
首页
注册

@学神之女

ljiil
JOJO,我不想再做人了!!
2020-06-10 09:03:34

上个话题

<script>
  function adddata(_this,banzu,list) {
    var xhttp = new XMLHttpRequest();
    xhttp.onreadystatechange = function() {
      if (this.readyState == 4 && this.status == 200) {
        document.getElementById("ndiv").innerHTML = this.responseText;
      }
    };
    xhttp.open("POST", "http://www.blog.com/index/index/adddata?banzu="+banzu+"&list="+list, true);
    xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    xhttp.send("fname=Bill&lname=Gates");
  }
</script>

我应该怎么改?