摘要: 概念 正则表达式是由一个字符序列形成的搜索模式。 语法 /正则表达式主体/修饰符(可选) let regex= /xyz/i let regex= new RegExp(/xyz/i) let regex= new RegExp('xyz','i') 修饰符 g:执行全局匹配 i:执行对大小写不敏感 阅读全文
posted @ 2020-01-08 17:42 把我当做一棵树叭 阅读(480) 评论(0) 推荐(0)
摘要: getCode () { const AppId = '你的微信公众号appid' const code = this.getQueryVariable('code') const local = window.location.href if (code == null || code '') { 阅读全文
posted @ 2020-01-08 16:55 把我当做一棵树叭 阅读(452) 评论(0) 推荐(0)