摘要:
var url = "http://192.168.0.61:8080/touch/index.html?game=AB01";var reg = new RegExp(/(\w+):\/\/([^/:]+)(:\d*)?/)var result = url.match(reg);console.l 阅读全文
摘要:
function typeOf(obj) { let res = Object.prototype.toString.call(obj).split(' ')[1] res = res.substring(0, res.length - 1).toLowerCase() return res } t 阅读全文
摘要:
// 倒计时 countdown() { var reg = /^\d{2}$/ var ending = new Date(this.days) var now = new Date() if (now >= ending) { clearTimeout(this.timeout) return 阅读全文