Fork me on GitHub
上一页 1 ··· 15 16 17 18 19
摘要: // 初始化加载 $(function () { setInterval("leftTimer()", 1000); }); // 倒计时计时器 function leftTimer() { var leftTime = (new Date(year, month, day, hour, minut 阅读全文
posted @ 2021-07-16 16:37 SmallChan 阅读(74) 评论(0) 推荐(0)
摘要: var map = new BMap.Map('map'); var point = new BMap.Point(jing, wei); var marker = new BMap.Marker(point); // 创建标注 map.addOverlay(marker); // 将标注添加到地图 阅读全文
posted @ 2021-07-16 16:35 SmallChan 阅读(222) 评论(0) 推荐(0)
摘要: //根据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 阅读(443) 评论(0) 推荐(0)
摘要: //js \n全部替换<br/> function tranceBr(str) { return str.replace(/\n/g, '<br/>'); } 阅读全文
posted @ 2021-07-16 16:31 SmallChan 阅读(152) 评论(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 阅读(155) 评论(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 阅读(107) 评论(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 阅读(121) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19