Fork me on GitHub

随笔分类 -  问题总结

日常遇见的问题记录
摘要: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 WantRemake 阅读(203) 评论(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 WantRemake 阅读(421) 评论(0) 推荐(0)
摘要://js \n全部替换<br/> function tranceBr(str) { return str.replace(/\n/g, '<br/>'); } 阅读全文
posted @ 2021-07-16 16:31 WantRemake 阅读(143) 评论(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 阅读(140) 评论(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 阅读(87) 评论(0) 推荐(0)