js獲取span內的文字增加字符?
HTMLCODE:<spanid="span">1111<b>張</b></span>var span = document.getElementById("span");if(span){ var text = span.innerHTML; text+="aaaaaaaaa<a href='#'>click</a>"; span.innerHTML = text;}
js獲取span內的文字增加字符?
HTMLCODE:<spanid="span">1111<b>張</b></span>var span = document.getElementById("span");if(span){ var text = span.innerHTML; text+="aaaaaaaaa<a href='#'>click</a>"; span.innerHTML = text;}