Skip to content

Instantly share code, notes, and snippets.

@zhangkn
Created May 17, 2018 07:22
Show Gist options
  • Save zhangkn/3809b9aebce0cf4d09fc389d06ebe0a6 to your computer and use it in GitHub Desktop.
Save zhangkn/3809b9aebce0cf4d09fc389d06ebe0a6 to your computer and use it in GitHub Desktop.
Page({
bindViewTap:function(event){
event.currentTarget.dataset.alphaBeta === 1 // - 会转为驼峰写法
event.currentTarget.dataset.alphabeta === 2 // 大写会转为小写
}
})
><view data-alpha-beta="1" data-alphaBeta="2" bindtap="bindViewTap"> DataSet Test </view>
>* 通过事件传递给 SERVICE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment