摘要: 重点为证书配置 因为为自己本地开发使用,在网上找了自定义的免费ssl,,附上连接(仅开发测试使用)。 https://csr.chinassl.net/generator-csr.html 生成完成会发送到你的邮箱 再然后:https://csr.chinassl.net/free-ssl.html 阅读全文
posted @ 2020-08-20 17:20 花海无疆 阅读(379) 评论(0) 推荐(3) 编辑
摘要: 在IE中,使用 location.href = "xxx.html" ,window.open("xxx.html") 这样的方式跳转页面时,在目标页面中 document.referer的值会是空。我们用两个方法解决 1.form function URL(url) { if (isIE) { / 阅读全文
posted @ 2020-07-29 10:38 花海无疆 阅读(708) 评论(0) 推荐(0) 编辑
摘要: data(){ return{ codeTxt:'(function() {console.log("run")})()' } } <textarea v-model="codeTxt"></textarea> <button class="btn" @click="runCode">运行</but 阅读全文
posted @ 2020-07-21 15:01 花海无疆 阅读(244) 评论(0) 推荐(0) 编辑
摘要: <script src='/path/to/fastclick.js'></script> 或者npm 安装FastClick.attach(document.body); FastClick.prototype.focus = function (targetElement) { let leng 阅读全文
posted @ 2020-06-03 19:41 花海无疆 阅读(572) 评论(0) 推荐(0) 编辑
摘要: <input type='file' id='fileEl'/> function base64() { let fileObj = document.getElementById('fileEl').files[0] //获取文件对象 let reader = new FileReader() / 阅读全文
posted @ 2020-02-04 18:07 花海无疆 阅读(1566) 评论(0) 推荐(0) 编辑
摘要: 现在项目有需要对数据进行脱敏处理,要求保留前三位和最后四位,中间对用*处理。如18912341234脱敏处理之后应该变成189****1234。处理方法如下: var str="18912341234" var pat=/(\d{3})\d*(\d{4})/ var b=str.replace(pa 阅读全文
posted @ 2019-12-30 16:25 花海无疆 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 先重点说一下可能遇到的坑:主要在原本默认参数的设置以及两个方法的选择上,看完这篇总结你就知道怎么回事了~ throttle API走起 _.throttle(func, [wait=0], [options={}]) func (Function): 要节流的函数。 [wait=0] (number 阅读全文
posted @ 2019-12-27 14:30 花海无疆 阅读(758) 评论(0) 推荐(0) 编辑
摘要: tinyMCE图片拖动到编辑框或者使用图片上传插件插入到编辑框时,需要指定上传方法,现需要使用后台接收前台上传的图片并将图片保存到服务器,之后将图片的url返回到前台做图片链接。 tinyMCE中有两种方式: 1、直接使用images_upload_url属性,该属性会在上传图片时自动访问指定的ur 阅读全文
posted @ 2019-12-25 10:14 花海无疆 阅读(1734) 评论(0) 推荐(0) 编辑
摘要: -webkit-box-shadow: 0 0 0px 1000px white inset input设置内置阴影,要比你的input本身大 阅读全文
posted @ 2019-12-10 18:01 花海无疆 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 1.在部署环境之前,先确定团队用的哪几种软件,然后依次下载,安装,IDEA, JDK, Tomcat, Maven。 什么是JDK? JDK是 Java 语言的软件开发工具包,主要用于移动设备、嵌入式设备上的java应用程序。JDK是整个java开发的核心,它包含了JAVA的运行环境(JVM+Jav 阅读全文
posted @ 2019-08-01 16:35 花海无疆 阅读(200) 评论(0) 推荐(0) 编辑