Kinco4TC

Results 2 comments of Kinco4TC

try it: `new Driver({ ... onHighlighted: (el) => { const node = el.getNode() as HTMLElement; node.style.pointerEvents = 'none'; }, onDeselected: (el) => { const node = el.getNode() as HTMLElement; node.style.pointerEvents...

避免是参数中的qq.com,其实就是要qq.com匹配前没有?,所以从开头开始到qq.com处,没有?出现即可;结尾时,不能是.避免域名还未结束 ```javascript const check = (value) => /^[^\?]+\.qq\.com[^.]*$/.test(value); check('http://www.qq.com') // true check('http://www.qq.com.cn') // false check('http://www.qq.com/a/b') // true check('http://www.qq.com?a=1') // true check('http://www.123qq.com?a=1') // false check('http://www.baidu.com?redirect=http://www.qq.com/a') // false check('http://www.qq.com?redirect=http://www.music.qq.com/a/b') // true ```...