03 2022 档案
摘要:1. 在 src 底下建立一个 utils (工具类文件夹,用于存放各种工具) 文件夹 2. utils 文件夹底下放各种 工具类的 js 文件 // 备注: 这个工具主要用来计算屏幕高度的 Math.easeInOutQuad = function(t, b, c, d) { t /= d / 2
阅读全文
摘要:一、Node.js下载安装 http://nodejs.cn/download/ 自己安装一个稳定的node版本就行,根据命令看是否安装成功即可 二、安装淘宝镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org 注:这里n
阅读全文
摘要:.top-center{ -webkit-animation: bounce-down 1.6s linear infinite; animation: bounce-down 1.6s linear infinite; //时间控制 } @-webkit-keyframes bounce-down
阅读全文
摘要://禁止用户复制粘贴 forbid(){ var noright = ""; if(!noright){ document.onselectstart=function(){return false;}; //禁止复制粘贴 window.oncontextmenu=function(){return
阅读全文
摘要:var contents = '' contents = this.addData.content.replace(/<[^>]+>/g, "") if( contents == '' ){ this.$message.error("留言不能为空") return } if(contents.len
阅读全文