fetch

    xiaoxiao2021-04-19  85

    ES6的AJAX请求

    fetch("json/a2.json").then(function(response) { return response.json(); }).then(function(data) { console.log(data); }).catch(function(e) { console.log(e); });

    转载请注明原文地址: https://ju.6miu.com/read-675827.html

    最新回复(0)