javascript如何向一個元素添加內(nèi)容_html/css_WEB-ITnose
來源:懂視網(wǎng)
責(zé)編:小采
時間:2020-11-27 15:44:43
javascript如何向一個元素添加內(nèi)容_html/css_WEB-ITnose
javascript如何向一個元素添加內(nèi)容_html/css_WEB-ITnose:JavaScript 如題: 我想給一個tag里的每個字符都添加一對, 比如about改成about ② T makes ss talk about the question. Then, T lets them copy each others' body language and share feelings abo
導(dǎo)讀javascript如何向一個元素添加內(nèi)容_html/css_WEB-ITnose:JavaScript 如題: 我想給一個tag里的每個字符都添加一對, 比如about改成about ② T makes ss talk about the question. Then, T lets them copy each others' body language and share feelings abo

JavaScript 如題:
我想給一個tag里的每個字符都添加一對,
比如about改成about
②
T makes ss talk about the question. Then, T lets them copy each others' body language and share feelings
about them.
********************.
我是這么想的,
但是,如果tag里有
或者
,空格, 等等,該怎樣做?
var str = obj.text(); for(var i=0; i
回復(fù)討論(解決方案)
可以先過濾掉“
或者
,空格, 。。”
可以先過濾掉“
或者
,空格, 。。”
那怎么再按照原來的樣式添加回去呢?
要保持樣式不變
,
, 會造成什么樣式改變
,
, 會造成什么樣式改變
我知道了,因為選擇的不是最低層元素~謝謝
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
javascript如何向一個元素添加內(nèi)容_html/css_WEB-ITnose
javascript如何向一個元素添加內(nèi)容_html/css_WEB-ITnose:JavaScript 如題: 我想給一個tag里的每個字符都添加一對, 比如about改成about ② T makes ss talk about the question. Then, T lets them copy each others' body language and share feelings abo