File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // Pages/about/about.js
2+ Page ( {
3+
4+ /**
5+ * 页面的初始数据
6+ */
7+ data : {
8+
9+ } ,
10+
11+ /**
12+ * 生命周期函数--监听页面加载
13+ */
14+ onLoad : function ( options ) {
15+
16+ } ,
17+
18+ /**
19+ * 生命周期函数--监听页面初次渲染完成
20+ */
21+ onReady : function ( ) {
22+
23+ } ,
24+
25+ /**
26+ * 生命周期函数--监听页面显示
27+ */
28+ onShow : function ( ) {
29+
30+ } ,
31+
32+ /**
33+ * 生命周期函数--监听页面隐藏
34+ */
35+ onHide : function ( ) {
36+
37+ } ,
38+
39+ /**
40+ * 生命周期函数--监听页面卸载
41+ */
42+ onUnload : function ( ) {
43+
44+ } ,
45+
46+ /**
47+ * 页面相关事件处理函数--监听用户下拉动作
48+ */
49+ onPullDownRefresh : function ( ) {
50+
51+ } ,
52+
53+ /**
54+ * 页面上拉触底事件的处理函数
55+ */
56+ onReachBottom : function ( ) {
57+
58+ } ,
59+
60+ /**
61+ * 用户点击右上角分享
62+ */
63+ onShareAppMessage : function ( ) {
64+
65+ }
66+ } )
Original file line number Diff line number Diff line change 1+ {
2+ "usingComponents" : {}
3+ }
Original file line number Diff line number Diff line change 1+ <!--Pages/about/about.wxml-->
2+ <text>Pages/about/about.wxml</text>
Original file line number Diff line number Diff line change 1+ /* Pages/about/about.wxss */
Original file line number Diff line number Diff line change 1+ // Pages/home/home.js
2+ Page ( {
3+
4+ /**
5+ * 页面的初始数据
6+ */
7+ data : {
8+
9+ } ,
10+
11+ /**
12+ * 生命周期函数--监听页面加载
13+ */
14+ onLoad : function ( options ) {
15+
16+ } ,
17+
18+ /**
19+ * 生命周期函数--监听页面初次渲染完成
20+ */
21+ onReady : function ( ) {
22+
23+ } ,
24+
25+ /**
26+ * 生命周期函数--监听页面显示
27+ */
28+ onShow : function ( ) {
29+
30+ } ,
31+
32+ /**
33+ * 生命周期函数--监听页面隐藏
34+ */
35+ onHide : function ( ) {
36+
37+ } ,
38+
39+ /**
40+ * 生命周期函数--监听页面卸载
41+ */
42+ onUnload : function ( ) {
43+
44+ } ,
45+
46+ /**
47+ * 页面相关事件处理函数--监听用户下拉动作
48+ */
49+ onPullDownRefresh : function ( ) {
50+
51+ } ,
52+
53+ /**
54+ * 页面上拉触底事件的处理函数
55+ */
56+ onReachBottom : function ( ) {
57+
58+ } ,
59+
60+ /**
61+ * 用户点击右上角分享
62+ */
63+ onShareAppMessage : function ( ) {
64+
65+ }
66+ } )
Original file line number Diff line number Diff line change 1+ {
2+ "usingComponents" : {}
3+ }
Original file line number Diff line number Diff line change 1+ <!--Pages/home/home.wxml-->
2+ <text class="title">Hello world</text>
3+ <button size="mini">按钮</button>
4+ <image src=""></image>
5+
6+
7+
8+
9+
10+
11+
12+
13+
Original file line number Diff line number Diff line change 1+ /* Pages/home/home.wxss */
2+ .title{
3+ color: red;
4+ font-size: 30px;
5+ }
Original file line number Diff line number Diff line change 1+ {
2+ "pages" : [
3+ " Pages/home/home" ,
4+ " Pages/about/about"
5+ ]
6+ }
You can’t perform that action at this time.
0 commit comments