每日一句: Knowledge is a treasure, but practice the key to it. 知识是一座宝库,实践是打开宝库的钥匙。
摘要: //store 中 store.js import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) const store = new Vuex.Store({ state: { author: 'Youngmon' }, mutations: { autho... 阅读全文
posted @ 2019-01-28 16:03 wuyongmao 阅读(5346) 评论(0) 推荐(0) 编辑
摘要: $refs的基本用法 一个对象(Object),持有注册过 ref 特性 的所有 DOM 元素和组件实例。 <template> <view class="container" style="background: #0FAEFF;"> <view class="child"> hi {{showM 阅读全文
posted @ 2019-01-28 11:35 wuyongmao 阅读(28157) 评论(1) 推荐(0) 编辑
摘要: 一、父组件向子组件传递数据(props) <template> <view class="container" style="background: #0062CC;"> <view class="child"> hi {{showModal}}</view> </view> </template> 阅读全文
posted @ 2019-01-28 09:53 wuyongmao 阅读(18419) 评论(0) 推荐(0) 编辑