我想用JavaScript代替一個Word,但是當腳本運行這個JavaScript時,也要替換Word。 的想法是添加薩姆風格字當腳本找到的文件的話,那麼我用REPLACE要做到這一點,看看代碼使用javascript添加樣式一個詞
document.body.innerHTML = document.body.innerHTML.replace('Amaru', '<span style=font-family:"Inder"!important;color:#0c5d4e;text-transform:lowercase;>amaru</span>');
謝謝你這麼多。
正在腳本標記出身體的可能性嗎? – Harangue