04 2021 档案
摘要:每个钩子函数触发: beforeCreate: 在实例初始化之后,数据观测(data observer) 和 event/watcher 事件配置之前被调用。 created: 实例已经创建完成之后被调用。在这一步,实例已完成以下的配置:数据观测(data observer),属性和方法的运算, w
阅读全文
摘要:相信刚学习node 的时候都有点搞不懂 -save、--save-dev、 -g 这三个参数代表的意思,下面就来简单的理一理: npm install -g module // -g 意思是将模块安装到全局 npm install -save module // -save 意思是将模块安装到项目目
阅读全文
摘要:1、父组件传递给子组件值,首先在components 中新建一个testComponents子组件,代码如下: testComponents.wxml <view> <text>{{value}}</text> </view> testComponents.js Component({ /** *
阅读全文
摘要:1、首先我们来创建弹窗的子组件,在components下面创建popup,代码如下: popup.wxml <view class="wx-popup" hidden="{{flag}}"> <view class='popup-container'> <view class="wx-popup-t
阅读全文