Skip to content

Instantly share code, notes, and snippets.

@zhangkn
Last active May 17, 2018 06:53
Show Gist options
  • Save zhangkn/ad038296624155cd33975139dc7f0619 to your computer and use it in GitHub Desktop.
Save zhangkn/ad038296624155cd33975139dc7f0619 to your computer and use it in GitHub Desktop.
<!-- >* wxml: 重复渲染该`view组件` -->
<!-- >``` -->
><!--wxml-->
<view wx:for="{{array}}"> {{item}} </view>
<!-- >``` -->
<!-- >* page.js -->
<!-- >``` -->
<!-- >// page.js -->
Page({
data: {
array: [1, 2, 3, 4, 5]
}
})
<!-- >``` -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment