示例地址 http://localhost:8081/newpop/dev-add/7.html
fullPath -->/newpop/dev-add/7.html(路由)
以/newpop/dev-add/开头,以.html结尾 正斜杠以 \/ 表示
const reg = /\/newpop\/dev-add\/(.*)\.html/
console.log(reg.test(fullPath)) 匹配成功返回 true 是不返回false
fullPath.match(/\/newpop\/dev-add\/(.*)\.html/) -->返回数组
判断图片地址
/^http(.*)\.(gif|jpg|jpeg|png|GIF|JPG|PNG)$/.test(url)