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>