Skip to content
陈广亮的技术博客
Go back

文本复制换行问题

文本复制到 txt 时会丢失换行格式,程序员的解决方式:

text.replace(/\n/g, "\r\n");

Share this post on:

Previous Post
Node 中使用 Markdown 与 highlight.js
Next Post
window.showModalDialog 与 window.open 跨域方案