webStrom 注释模板添加
摘要:https://www.cnblogs.com/byx1024/p/12208009.html
阅读全文
匹配正则 url 端口 域名
摘要: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
阅读全文