这是关于网站的。
页面: https :
一个微调器仍然存在。 控制台显示关于 team.js 文件的 JS 错误。
也许获取的数据页上的信息结构发生了变化?
我正在使用 Firefox。
导航到页面: https :
打开控制台;
Uncaught (in promise) TypeError: json.findIndex is not a function
innerHTML https://lostisland.github.io/faraday/assets/js/team.js:16
fetchTeam https://lostisland.github.io/faraday/assets/js/team.js:15
<anonymous> https://lostisland.github.io/faraday/assets/js/team.js:43
该函数的代码是
function fetchTeam(json, team, div) {
let el = document.querySelector(div);
el.innerHTML = team.map(function (m) {
let index = json.findIndex(function(e) {
return e.author.login === m
});
return teamTile(json.splice(index, 1)[0]);
}).join('');
}
我刚刚试过这个,对我来说效果很好,也许这只是一个暂时的问题?
我在手机上试了一下,只得到了微调器。 嗯!
奇怪,根据MDN ,Firefox 应该也支持这个功能🤔
_现在_它在我的笔记本电脑上完美运行。 嗯。
……还有我的手机。 嗯。 关闭!