//ISBN编号正则匹配
let reg = /^(?:d+-){4}d+$|^d{13}$/;
//替换所有的中文逗号
let str =str.replace(/,/ig, ',');
//句子中指定词组高亮显示
if(phrase.length && sentence){
phrase.slice(0, 4).map(item => {
let reg = new RegExp("(" + item + ")", "g");
let str = document.querySelector(".pm_modal_sentence").innerHTML;
let newstr = str.replace(reg, "<font color=#FEA313>$1</font>");
document.querySelector(".pm_modal_sentence").innerHTML = newstr;
})
}
//修改本地cookie
document.cookie="_yttoken_daily=yql01ascolxzc5fy"
想要这样一间小木屋,夏天挫冰吃瓜,冬天围炉取暖.