switch.js 239 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 Page({ switch1Change: function (e){ console.log('switch1 发生 change 事件,携带值为', e.detail.value) }, switch2Change: function (e){ console.log('switch2 发生 change 事件,携带值为', e.detail.value) } })