摘要: //把HTML格式的字符串转义成实体格式字符串function escapeHTMLString(str) { str = str.replace(/</g,'&lt;'); str = str.replace(/>/g,'&gt;'); return str;} //把实体格式字符串转义成HTML 阅读全文
posted @ 2020-01-10 15:42 Sea。 阅读(1186) 评论(0) 推荐(0) 编辑
摘要: https://www.zhangxinxu.com/study/201803/text-scale-auto.html 阅读全文
posted @ 2019-12-26 11:32 Sea。 阅读(429) 评论(0) 推荐(0) 编辑
摘要: moment(你的data).format('YYYY-MM-DD h:mm:ss');文档:http://momentjs.cn/docs/#/displaying/ 阅读全文
posted @ 2019-11-22 14:26 Sea。 阅读(4944) 评论(0) 推荐(0) 编辑
摘要: <div style=" position: absolute; top: 6rem; right: 4rem;" id="hides" > <a class="icon_a" style="color: #333; font-size: 16px;display: flex;"><span tit 阅读全文
posted @ 2019-09-11 16:23 Sea。 阅读(3008) 评论(0) 推荐(0) 编辑
摘要: $('#hides').mouseover(function () { alert("sdfdsf")}).mouseout(function () { alert("啊啊") // $(hides).removeClass('a')}) 阅读全文
posted @ 2019-09-11 15:37 Sea。 阅读(4005) 评论(0) 推荐(0) 编辑
摘要: 做个笔记偶尔用有时记不住 方法一: 方法二: <div class="people_state">设为管理员</div> <div class="people_state">设为管理员</div> <js> $(".people_state").each(function() { $(".peopl 阅读全文
posted @ 2019-09-11 15:21 Sea。 阅读(2613) 评论(0) 推荐(0) 编辑
摘要: var html = "--";if(data.createTime!=null&&data.createTime!=""){ Date.prototype.toLocaleString = function() { return this.getFullYear() + "-" + (this.g 阅读全文
posted @ 2019-08-17 11:31 Sea。 阅读(990) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-17 09:33 Sea。 阅读(348) 评论(0) 推荐(0) 编辑
摘要: function getCaption(obj){ var index=obj.lastIndexOf("\-"); obj=obj.substring(index+1,obj.length); // console.log(obj); return obj; } var str=" 执法办案流程c 阅读全文
posted @ 2019-08-16 18:53 Sea。 阅读(13737) 评论(0) 推荐(0) 编辑
摘要: //获取url参数function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg);/ 阅读全文
posted @ 2019-08-15 11:43 Sea。 阅读(691) 评论(0) 推荐(0) 编辑