我使用抓取做了一个脚本,但它在ie8 +中不起作用,它在其他浏览器中正常工作,但在IE中,我已经尝试了一些webpack/gulp插件解决方案,但没有成功。Javascript抓取Internet Explorer 8
我的代码:
(() => {
fetch('/category.json',{
method: 'GET',
headers:{
'Access-Control-Allow-Origin':'*',
"Content-Type": "text/plain"
}
})
.then(response => response.json())
.then(data => changeItems(data.data))
.then(data => sortItems(data))
.then(data => displayData(data, 'ranking'))
})();
如果您在Google中搜索您的*精确*问题标题,则第一个结果是用于在IE8中激活提取的填充。 –