摘要:
添加图片网络图片: wxml文件中: <canvas canvas-id="canvas" style="border:1px solid #f00;height: 400rpx; width: 400rpx;"></canvas> js文件中: onShow: function () { wx.g 阅读全文
摘要:
https://www.cnblogs.com/nield-bky/p/6040853.html 一:时间转时间戳:javascript获得时间戳的方法有四种 1.var timestamp1 = Date.parse(new Date()); // 结果:1477808630000 毫秒级别的数值 阅读全文
摘要:
1)什么事Vuex Vuex是一个专为Vue.js应用程序开发的状态管理模式 所有页面共享的变量2)Vuex在什么情况下进行使用在项目过大的时候采取使用,项目量较小的时候是繁琐冗余的官网的说如果您不打算开发大型单页应用,使用 Vuex 可能是繁琐冗余的。 阅读全文
摘要:
1. 在app.vue的created方法中读取sessionstorage中的数据存储在store中,此时用vuex.store的 replaceState方法,替换store的根状态 2. 在beforeunload方法中将store.state存储到sessionstorage中。 expor 阅读全文