摘要: appscan安全漏洞扫描“Content-Security-Policy”头缺失或不安全 后端ngix配置Content-Security-Policy头(自行百度ngix Content-Security-Policy配置) 如果前端页面空白无法加载必须设置scrpt-src unsafe-in 阅读全文
posted @ 2022-06-08 23:40 那狗子真肥 阅读(4897) 评论(0) 推荐(0) 编辑
摘要: 1、nodejs官网下载对应系统的安装包 2、除了你想自定义安装的路径其他一切一直点next往下走 3、打开cmd命令窗口输入node -v,看到v.xx.xx代表node已经装好 node -v 4、cmd命令窗口输入npm -v,看到v.xx.xx代表cnpm已经装好(看下日期现在的node和n 阅读全文
posted @ 2022-06-08 23:22 那狗子真肥 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 实现一个el-elment校验器以外的辅助校验,一个盒子包含多个表单元素,如图 普通compnent模板组件形式将校验隐藏显示也简单方便,不赘诉 一、class类方法 @/utils/additionvalidata.js文件 /** * @param dom,//父元素,传入#id或.class, 阅读全文
posted @ 2020-10-29 15:03 那狗子真肥 阅读(2098) 评论(0) 推荐(0) 编辑
摘要: //createUser 确定的,params位置的对象 const params={ moduleId :2 } const onSubmit=function({ createUser = 1, ...params }) { const postFunc = params.moduleId ? 阅读全文
posted @ 2020-10-21 15:24 那狗子真肥 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 使用箭头函数应该注意什么? 箭头函数没有它自己的this值,箭头函数内的this值==继承==自 外围 作用域。导致内部的this就是外层代码块的this。正是因为它没有this,所以也就==不能用作构造函数、原型对象、对象里面定义函数、事件回调函数(这四样一般指向外层window,造成本身代码的b 阅读全文
posted @ 2019-11-20 21:36 那狗子真肥 阅读(1392) 评论(0) 推荐(0) 编辑
摘要: ``` .linear { width: 630px; height: 120px; line-height: 150px; text-align: center; font-size: 26px; position: absolute; bottom: 0; color: #fff; background: -webkit-linear-gradient( top, rgba(0, 0, 0, 阅读全文
posted @ 2019-08-29 17:22 那狗子真肥 阅读(5721) 评论(0) 推荐(0) 编辑
摘要: ``` .active { animation: chuiziza 0.5s ease 1 forwards; } .feijindan { display: block; animation: fei 2s ease 1 forwards; } ... 阅读全文
posted @ 2019-08-29 14:34 那狗子真肥 阅读(274) 评论(0) 推荐(0) 编辑
摘要: jquery的offset().top和js的offsetTop的区别,以及jquery的offset().top的实现方法 offset().top是JQ的方法,需要引入JQ才能使用,它获取的是你绑定元素上边框相对于html上边界的偏移量。 offsetTop是原生JS的方法,它获取的是你绑定元素 阅读全文
posted @ 2019-08-29 14:08 那狗子真肥 阅读(3271) 评论(0) 推荐(0) 编辑
摘要: ``` //或者 //或者 ``` 阅读全文
posted @ 2019-08-29 11:56 那狗子真肥 阅读(1333) 评论(0) 推荐(0) 编辑
摘要: 1、写在html里 2、写在js里 this.$router.push({ path: '/goldShop/allGoods' }) this.$router.push({ path: , query:{id:this.id,num:this.num}//带参 }) console.log(thi 阅读全文
posted @ 2019-08-29 11:51 那狗子真肥 阅读(3112) 评论(0) 推荐(0) 编辑
Live2D