Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试使用 document.write() 在 html 页面中写入大量内容时,document.write() 是否有大小限制。
使用它可以写入长数据没有大小限制............
我认为 document.write() 的唯一限制是您使用的字符串长度(这取决于使用的浏览器)。但是,由于内存管理的新技术,任何现代浏览器中的单个字符串实际上都没有限制。