1、TypeError: Invalid value used as weak map key
2、document.cookie为空
3、getBoundingClientRect, getComputedStyle
4、界面未更新,检查key设置
5、设置html页面 不可选中 onselectstart="return false" 或 user-select:none;
6、pointer-events: none 去掉鼠标事件
7、正则:
//\<h1.*\>(?:.|\n)\<\/h1/g // (?:.|\n)匹配多行
// const reg = /\<h1.*\>[^\<]*\<\/h1/g
// const re2 = /(?<(\<h1[^\<]*\>))[^\<]*(?(\<\/h1\>))/g
// const reg3 = /\<h1[^\<]*\>(.*)\<\/h1\>/g
const reg = /(?<=\<h1[^\<]*\>).*(?=\<\/h1\>)/g // 截取<h1></h1>内容
记录记录记录
于 2022-06-28 15:13:36 首次发布