摘要: html,body,#app{ height: 100%; padding: 0; margin: 0; } 阅读全文
posted @ 2020-12-10 19:59 webapp1 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 这篇文章主要介绍下vue-cli3.0项目搭建,项目结构和配置等整理一下,分享给大家。 一、介绍 Vue CLI 是一个基于 Vue.js 进行快速开发的完整系统。有三个组件: CLI:@vue/cli 全局安装的 npm 包,提供了终端里的vue命令(如:vue create 、vue serve 阅读全文
posted @ 2020-10-08 21:45 webapp1 阅读(754) 评论(0) 推荐(0) 编辑
摘要: let o = {a:1} let b = {c:'a'} o[b.c] 而不能写成o.b.c 阅读全文
posted @ 2020-08-12 21:24 webapp1 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 方法:mui(Selector).numbox().setOption('max',5)在webpack vue 中 watch: { maxnum: function(newValue, oldValue) { mui(".mui-numbox") .numbox() .setOption("ma 阅读全文
posted @ 2020-08-12 14:30 webapp1 阅读(402) 评论(0) 推荐(0) 编辑
摘要: beforeEnter: function(el) { // 通过绝对定位,小球css的top和left值一直都是固定的 //不管怎么滚动,小球的x y坐标固定 el.style.transform = "translate(0,0)"; }, enter: function(el, done) { 阅读全文
posted @ 2020-08-12 10:20 webapp1 阅读(256) 评论(0) 推荐(0) 编辑
摘要: <mt-swipe :auto="4000"> <mt-swipe-item v-for="(item,i) in list" :key="i"> <img :src="item.img" alt :class="{'width100':isActive}" /> </mt-swipe-item> 阅读全文
posted @ 2020-08-11 10:12 webapp1 阅读(386) 评论(0) 推荐(0) 编辑
摘要: <style lang="less" scoped> * { touch-action: pan-y; } </style> 是谷歌浏览器单纯为了提高滑动流畅度而设计的 阅读全文
posted @ 2020-08-09 16:27 webapp1 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 项目引用mui.js报错Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be... 安装: cnpm i @babel/plugin-transform-modules-commonjs @babe 阅读全文
posted @ 2020-08-09 16:19 webapp1 阅读(395) 评论(0) 推荐(0) 编辑
摘要: this.$http .post("api/postcomment/" + this.id, { content: this.msg.trim() }) .then(res => { if (res.body.status == 0) { this.list.unshift({ add_time:  阅读全文
posted @ 2020-08-09 09:45 webapp1 阅读(205) 评论(0) 推荐(0) 编辑
摘要: cnpm i moment -S import moment from 'moment' Vue.filter('dateFormat', function (value, pattarn = "YYYY-mm-dd") { return moment(value).format(pattarn) 阅读全文
posted @ 2020-08-08 10:54 webapp1 阅读(139) 评论(0) 推荐(0) 编辑