LLWiki正在建设中,欢迎加入我们

User:Bhsd/widget/songposition.js

来自LLWiki
< User:Bhsd‎ | widget
Bhsd讨论 | 贡献2020年11月28日 (六) 01:05的版本 (创建页面,内容为“//<nowiki> // 用于Widget:Songposition,可以使用ES6语法 "use strict"; document.querySelectorAll( '.member-symbol' ).forEach(ele => { ele.dataset.titl…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索

注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件
//<nowiki>
// 用于[[Widget:Songposition]],可以使用ES6语法
"use strict";
document.querySelectorAll( '.member-symbol' ).forEach(ele => {
    ele.dataset.title = ele.title;
    ele.removeAttribute('title');
});
//</nowiki>
// [[category:JavaScript小部件]] {{DEFAULTSORT:Songposition}}