08 2020 档案

摘要:let o = {a:1} let b = {c:'a'} o[b.c] 而不能写成o.b.c 阅读全文
posted @ 2020-08-12 21:24 webapp1 阅读(190) 评论(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 阅读(440) 评论(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 阅读(275) 评论(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 阅读(405) 评论(0) 推荐(0)
摘要:<style lang="less" scoped> * { touch-action: pan-y; } </style> 是谷歌浏览器单纯为了提高滑动流畅度而设计的 阅读全文
posted @ 2020-08-09 16:27 webapp1 阅读(130) 评论(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 阅读(406) 评论(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 阅读(214) 评论(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 阅读(150) 评论(0) 推荐(0)
摘要:<template> <div :style="conheight"> </template> <script> export default{ data(){ conheight:{ height:'' } }, methods:{ getHeight(){ this.conheight.heig 阅读全文
posted @ 2020-08-08 10:44 webapp1 阅读(1076) 评论(0) 推荐(0)
摘要:1:cnpm i vue-resource -S 开发依赖 2:import vueResource from 'vue-resource' 引入 3:Vue.use(vueResource) 安装 安装完就可以在所有组件中使用this.$http发送请求 阅读全文
posted @ 2020-08-07 08:57 webapp1 阅读(166) 评论(0) 推荐(0)
摘要:MUI 不同于 Mint-UI,MUI只是开发出来的一套好用的代码片段,里面提供了配套的样式、配套的HTML代码段,类似于 Bootstrap; 而 Mint-UI,是真正的组件库,是使用 Vue 技术封装出来的 成套的组件,可以无缝的和 VUE项目进行集成开发; 因此,从体验上来说, Mint-U 阅读全文
posted @ 2020-08-06 10:08 webapp1 阅读(258) 评论(0) 推荐(0)
摘要:webpack中按需引入mint-UI报Error: .plugins[0][1] must be an object, false, or undefined Mint-UI官方文档:https://mint-ui.github.io/docs/#/en2/quickstart 按需引入mint- 阅读全文
posted @ 2020-08-06 09:26 webapp1 阅读(1180) 评论(0) 推荐(0)
摘要:使用方式 在项目中安装 vue npm i vue -S 在 webpack 中推荐我们使用 .vue 组件模板文件定义组件,webpack 不能打包解析这种类型的文件,所以我们要去安装能够解析这种文件的 loader npm i vue-loader vue-template-compiler - 阅读全文
posted @ 2020-08-05 21:12 webapp1 阅读(134) 评论(0) 推荐(0)