与服务端的交互请求比较个性化,需要自行 封装组件,在组件中可以用 fetch 自行实现。
示例:
fetch(location.href).then(function (res) { return res.text();}).then(function (text) { fetchElement.innerHTML = 'fetch: ' + (text.search('mip-test') !== -1);});