switch.js 341 B

12345678910111213141516
  1. Page({
  2. onShareAppMessage() {
  3. return {
  4. title: 'switch',
  5. path: 'page/component/pages/switch/switch'
  6. }
  7. },
  8. switch1Change(e) {
  9. console.log('switch1 发生 change 事件,携带值为', e.detail.value)
  10. },
  11. switch2Change(e) {
  12. console.log('switch2 发生 change 事件,携带值为', e.detail.value)
  13. }
  14. })