微信小程序開發(三)點擊事件

接着上篇博客繼續。 如下修改: // index.wxml <view>Hello World!</view> <button bindtap="but">點擊按鈕</button> // 按鈕 bindtap屬性就是添加點擊事件,名字是but // index.js Page({ but: function(){ // 通過but點擊事件觸發後面的函數 console.log
相關文章
相關標籤/搜索