2011-05-19 74 views

回答

0

保持作爲一個字符串整個文件?嘗試

doc.replace(/\n[\s ]*\*/g, '<The content to insert>'); 
+0

我不知道如何使文檔的字符串,但我想這一點,並沒有運氣:'\t的document.getElementById( 'theStuff')innerHTML.replace(/ \ n [\ S] * \ */g,'<要插入的內容>');' – thf 2011-05-19 01:59:09