|
@@ -1,5 +1,6 @@
|
|
|
<view>
|
|
|
-<view>首页</view>
|
|
|
+ <header1></header1>
|
|
|
+ <view>首页</view>
|
|
|
<!-- 循环渲染 -->
|
|
|
<view wx:for="{{arr}}" wx:for-item="item" wx:key="index">
|
|
|
{{index+1}}--我叫{{item.name}}--今年{{item.age}}岁
|
|
@@ -10,4 +11,19 @@
|
|
|
<view wx:if="{{week <= 3}}">这周才刚刚开始</view>
|
|
|
<view wx:elif="{{week <= 5}}">这周快结束了</view>
|
|
|
<view wx:else="{{week >= 6}}">放假不积极</view>
|
|
|
+ <button bind:tap="showMain">按钮</button>
|
|
|
+ <button catch:tap="showMsg">按钮1</button>
|
|
|
+ <!-- <button v-bind:click="showMain">按钮</button> -->
|
|
|
+ <input class="inp" type="text" />
|
|
|
+ <!-- 引用 -->
|
|
|
+ <template name="hi">
|
|
|
+ <view>今天星期{{week}}</view>
|
|
|
+ </template>
|
|
|
+ <!-- bind 与 catch -->
|
|
|
+ <view class="box" bind:tap="showWord1">
|
|
|
+ <view class="box1" bind:tap="showWord2"></view>
|
|
|
+ </view>
|
|
|
+ <input type="text" bindinput="changePart1" bind:tap="changePart2" bindconfirm="changePart3" />
|
|
|
+
|
|
|
+
|
|
|
</view>
|