摘要: javaScript function GetQueryString(name) { let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); let r = window.location.search.substr(1).match(reg) 阅读全文
posted @ 2025-01-21 10:50 Alanx、 阅读(11) 评论(0) 推荐(0)
摘要: 运行截图 HTML <div> <button onclick="format()"> 时间格式化 </button> <p>当前时间戳:<span id="s1">--</span></p> <p>格式化时间:<span id="s2">--</span></p> </div> javaScrip 阅读全文
posted @ 2025-01-21 10:43 Alanx、 阅读(20) 评论(0) 推荐(0)