![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小程序
tellmeanswer
这个作者很懒,什么都没留下…
展开
-
mpvue 使用全局变量
最近在写小程序需要用到全局变量 首先在 主main.js中与 vue实例挂载 const app = new Vue(App) app.$mount() Vue.prototype.globalData = getApp().globalData 挂载后 在录入值的页面 this.globalData.valu = 1 在使用页面 onShow () { console.log(this.glo...原创 2020-04-24 10:25:10 · 2534 阅读 · 0 评论 -
mpvue使用animation.js 方法实现卡片翻转,设置背景
最近自己在做小程序使用mpvue快速搭建,需要实现卡片翻转的效果 ## 第一步 引入animation npm install animate.css --save 下在完成后 在所用到动画的页面引入 animate.css 我是在main.js中引用 import animate from 'animate.css' Vue.use(an...原创 2020-04-24 10:21:30 · 526 阅读 · 0 评论