摘要: 前提 : node 环境 也可以用 cnpm (淘宝镜像 npm install -g cnpm –registry=https://registry.npm.taobao.org) 全局安装vue-cli : npm install --global vue-cli 进入你的项目目录,创建一个基于 阅读全文
posted @ 2020-03-26 16:12 J__F 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 那就自己写一个trim() String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); //正则匹配空格 } 阅读全文
posted @ 2020-03-26 14:45 J__F 阅读(157) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/YaoDeBiAn/article/details/85047798 阅读全文
posted @ 2020-03-26 14:35 J__F 阅读(155) 评论(0) 推荐(0) 编辑
摘要: background-color: rgba(0, 0, 0, .5); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7F111111,endColorstr=#7F111111); 第二行的意思就是当上一行的透明 阅读全文
posted @ 2020-03-26 14:05 J__F 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 在使用 document.getElementsByClassName 前加上 if (!document.getElementsByClassName) { document.getElementsByClassName = function (className, element) { var  阅读全文
posted @ 2020-03-26 13:45 J__F 阅读(147) 评论(0) 推荐(0) 编辑
摘要: html,body{ height: 100%; width: 100%; background: url('../img/bg.png') no-repeat; background-size: 100% 100%; filter:progid:DXImageTransform.Microsoft 阅读全文
posted @ 2020-03-26 13:38 J__F 阅读(223) 评论(0) 推荐(0) 编辑