JS
mr_yang1006
这个作者很懒,什么都没留下…
展开
-
深拷贝
function deepClone(obj) { var copy; // Handle the 3 simple types, and null or undefined if (null == obj || "object" != typeof obj) return obj; // Handle Date if (obj instanceof Date) { ...原创 2019-04-18 23:41:06 · 160 阅读 · 0 评论 -
去掉标签里面的内容
<html><script>var Htmlstring='<style>12</style>1222<style>ddd</style>'var reg= /<(style|meta|%)[\s\S]*?\/(style|meta|%)>/ig;Htmlstring = Htmlstring.repl...原创 2019-05-08 18:58:59 · 196 阅读 · 0 评论