COS CREATOR calls the PHP interface, C #, Java ideas

var url="jk.php";
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status <400)) {
var response = xhr.responseText;
console.log("server response:" +response);
}
};
xhr.open("GET", url, true);
xhr.send();

Actually It is the native js method.

To find a way to introduce jq大笑

< /p>

var url="jk.php";
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr. readyState == 4 && (xhr.status >= 200 && xhr.status <400)) {
var response = xhr.responseText;
console.log("server response:"+response);< br /> }
};
xhr.open("GET", url, true);
xhr.send();

In fact, it is a native js method .

To find a way to introduce jq大笑

< p>

Leave a Comment

Your email address will not be published.