看板 [ Ajax ]
討論串[ js ] 怎麼辨識出HTML中的  
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 0→)留言2則,0人參與, 最新作者shyangs (欲翔)時間16年前 (2009/07/16 10:22), 編輯資訊
0
0
1
內容預覽:
在 MozTW 問到答案了 http://forum.moztw.org/viewtopic.php?t=27421. "A\u00a0B"==document.getElementById('space').firstChild.nodeValue. 為true,詳見 MozTW 討論串。. --

推噓1(1推 0噓 4→)留言5則,0人參與, 最新作者shyangs (欲翔)時間16年前 (2009/07/15 14:14), 編輯資訊
0
0
0
內容預覽:
我想用 js 辨識 HTML 中的一個文字節點,該節點含有&nbsp;. 簡單的例子. <html>. <span id="space">A&nbsp;B</span>. </html>. 我試過. javascript:alert('A B'==document.getElementById('s
(還有380個字)
首頁
上一頁
1
下一頁
尾頁