Fork me on GitHub

随笔分类 -  问题总结

日常遇见的问题记录
摘要://js \n全部替换<br/> function tranceBr(str) { return str.replace(/\n/g, '<br/>'); } 阅读全文
posted @ 2021-07-16 16:31 WantRemake 阅读(137) 评论(0) 推荐(0) 编辑
摘要://将HTML代码转换为文本 function HTMLDecode(text) { var temp = document.createElement("div"); temp.innerHTML = text; var output = temp.innerText || temp.textCo 阅读全文
posted @ 2021-07-13 15:26 WantRemake 阅读(131) 评论(0) 推荐(0) 编辑
摘要:<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script> <script type="text/x-mat 阅读全文
posted @ 2021-07-13 15:25 WantRemake 阅读(81) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示