Skip to content

Instantly share code, notes, and snippets.

@zhangkn
Created May 17, 2018 06:59
Show Gist options
  • Save zhangkn/cc25c2210130941f9cd4518e2858d2fe to your computer and use it in GitHub Desktop.
Save zhangkn/cc25c2210130941f9cd4518e2858d2fe to your computer and use it in GitHub Desktop.
<view wx:if="{{view == 'WEBVIEW'}}"> WEBVIEW </view>
<view wx:elif="{{view == 'APP'}}"> APP </view>
<view wx:else="{{view == 'MINA'}}"> MINA </view>
Page({
data: {
view: 'MINA'
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment