-
-
Save zhangkn/3809b9aebce0cf4d09fc389d06ebe0a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Page({ | |
bindViewTap:function(event){ | |
event.currentTarget.dataset.alphaBeta === 1 // - 会转为驼峰写法 | |
event.currentTarget.dataset.alphabeta === 2 // 大写会转为小写 | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
><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