JS里面怎样设置高亮?

2024-12-03 23:09:54
推荐回答(1个)
回答(1):

var oldKey="";function showKey(allStr,keyStr){ if(oldKey!=""){ allStr.replace(""+oldKey+"",oldKey); } if(keyStr!=""){ allStr.replace(keyStr,""+keyStr+""); } oldKey = keyStr;}