编辑:使用提取进行API调用。
fetch(http://www.example.com/api/json/x/a/search.php?s=category) .then(response => response.json()) .then((jsonData) => { // jsonData is parsed json object received from url console.log(jsonData) }) .catch((error) => { // handle your errors here console.error(error) })在所有现代浏览器中均可使用访存。



