摘要:
onReady(){ let that = this uni.getSystemInfo({ success: function(res) { // res - 各种参数 console.log(res.windowHeight); // 屏幕的宽度 let info = uni.createSel 阅读全文
摘要:
非父子间传值事件总线:// 原理上就是建立一个 公共的js文件, 专门来传递消息 // bus.js import Vue from 'vue' export default new Vue // 在需要传递消息的地方引入 import bus from './bus.js' // 传递消息 bus 阅读全文