Fork me on GitHub
上一页 1 ··· 15 16 17 18 19
摘要: //根据id去重 function unique(arr1) { const res = new Map(); return arr1.filter((a) => !res.has(a.id) && res.set(a.id, 1)) } 阅读全文
posted @ 2021-07-16 16:33 SmallChan 阅读(435) 评论(0) 推荐(0)
摘要: //js \n全部替换<br/> function tranceBr(str) { return str.replace(/\n/g, '<br/>'); } 阅读全文
posted @ 2021-07-16 16:31 SmallChan 阅读(149) 评论(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 SmallChan 阅读(148) 评论(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 SmallChan 阅读(103) 评论(0) 推荐(0)
摘要: Server、Client端分别在两个项目中 Server端: try{int port = 4000;string host = "127.0.0.1";IPAddress ipa = IPAddress.Parse(host);//将IP字符串转换为IP地址的实例IPEndPoint ipe = 阅读全文
posted @ 2021-06-20 21:33 SmallChan 阅读(118) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19