|
发表于 2024-6-23 20:28:34
|
显示全部楼层
本帖最后由 zhangchenyvn 于 2024-6-23 20:38 编辑
我觉得最后一段改成这样能够更好一点:
- let command = title.innerHTML + "<span style='color: " + colors[index] + ";'>(" + comments[index] + "UP";
- if (index < 4) {
- if (data[index][index2][1] != "") {
- command += "," + data[index][index2][1];
- }
- } else {
- command += ",你可以通过这里--><a href='https://fishc.com.cn/thread-243769-1-1.html' style='color: #369;'>记录</a><--";
- }
- command += ")</span></span>";
- command = 'document.getElementsByClassName("video-info-title-inner")[0].getElementsByTagName("h1")[0].innerHTML = "' + command + '"';
- setTimeout(command, 5000);
- }
复制代码 |
|