可能重複:
Why split the <script> tag when writing it with document.write()?爲什麼此腳本元素分解爲多個document.write()調用?
我經常看到下面的語句:
document.write("<scr");
document.write("ipt language=\"Javascript\" type=\"text/javascript\" src=\"source url\"></scr");
document.write("ipt>");
這樣做有什麼好處?爲什麼人們不寫下整個劇本?
document.write("<script ");
會質疑jQuery的標題和標籤。相應修改 – 2010-07-27 09:55:30
@James Wiseman:我不讀jQuery,只是查詢。 – Gumbo 2010-07-27 09:56:53
是的,它是查詢 – Reigel 2010-07-27 09:58:31