文章分类 - Web
摘要:使用vux可以解决,苹果手机使用position:fixed的问题 给需要position:fixed的元素上绑定一个 v-transfer-dom,script中引用一下这个组件就ok了 看代码 <template> <div class="bottom" v-transfer-dom> <ul>
阅读全文
摘要:<html xmlns="http://www.w3.org/1999/xhtml" style="filter: grayscale(100%);">
阅读全文
摘要:location /front/js/stat.js{ root html; #kill 缓存 add_header Last-Modified $date_gmt; add_header Cache-Control 'no-store, no-cache, must-revalidate, pro
阅读全文
摘要:location ~* /front/.*\index.html$ { error_page 405 =200 $uri; #kill 缓存 add_header Last-Modified $date_gmt; add_header Cache-Control 'no-store, no-cach
阅读全文
摘要:使用Chrome 浏览器调试移动端网页 chrome://inspect/#devices
阅读全文
摘要:npm i @vue/cli -g 这个是cli3的版本 如果我们还想使用cli2的脚手架,那么我们可以在安装一个包 npm i @vue/cli-init -g cli3版本创建 vue create project cli2 vue init webpack project
阅读全文
摘要:oninput不能像onkeydown等事件一样阻止冒泡和默认行为。 解决的方案为 1.在keydown时存储旧值,所有input共用一个变量就好,采用正则等方式检验旧值,通过则保存,不通过不保存 2.oninput时对本次加入的值进行正则方式校验 3.如果通过校验,不用进行操作。不通过时,对inp
阅读全文
摘要:start abs -n 2000 -c -k 60 https://e.djbx.com/front/nation/static/img/rank-entry@3x.e649ba6.png abs -n 20000 -c 10 -p post.txt -T application/json htt
阅读全文
摘要:favicon.ico 图标用于收藏夹图标和浏览器标签上的显示,如果不设置,浏览器会请求网站根目录的这个图标,如果网站根目录也没有这图标会产生 404。出于优化的考虑,要么就有这个图标,要么就禁止产生这个请求。 在做 H5 混合应用的时候,不希望产生 favicon.ico 的请求。 可以在页面的
阅读全文
摘要:npm install --save babel-polyfill 在入口main.js文件当中引入: import 'babel-polyfill' 1 找到build文件夹下的webpack.base.conf.js module.exports = { context: path.resolv
阅读全文
摘要:npm install swiper --save-devswiper4.0使用入口:http://www.swiper.com.cn/usage/index.html; "swiper": "^3.4.2",
阅读全文
摘要:如果为正数,则离用户更近,为负数则表示离用户更远。
阅读全文
摘要:<template> <div class="root" @touchmove.prevent> <div class="card"> <div class="close" @click="onClose"><i class="fa fa-times" aria-hidden="true"></i>
阅读全文
摘要:同点: 二者安装完成以后都会出入到 package.json 这个依赖的配置文件中,这也是node必须的。 不同点: npm install p --save: 会一注入到package,json中dependencies中,代表是项目必须的依赖的组件不管是开发还是上线 npm install p
阅读全文
摘要:npm install --save axios
阅读全文
摘要:<transition name="fade"> <div class="error" v-if="showError"> <div class="errLine"></div> <i></i> <span>{{errorMsg}}</span> </div></transition> .error
阅读全文
摘要:npm install --save vue-lottie Speed: x{{animationSpeed}} stop pause play
阅读全文
摘要:npm set registry https://registry.npm.taobao.org/ npm install -g cnpm --registry=https://registry.npm.taobao.org (安装淘宝镜像)用淘宝镜像快!而且安装的时候减少出错! cnpm inst
阅读全文
摘要://水平居中margin: 0 auto; //垂直居中position: relative; top: 50%; transform: translateY(-50%);
阅读全文

浙公网安备 33010602011771号