提交 72ef2137 编写于 作者: qq_22316713's avatar qq_22316713 提交者: qiang014

!114 update docs/component/switch.md.

* update docs/component/switch.md.
上级 7f0e9058
...@@ -46,10 +46,10 @@ export default { ...@@ -46,10 +46,10 @@ export default {
}, },
methods: { methods: {
switch1Change: function (e) { switch1Change: function (e) {
console.log('switch1 发生 change 事件,携带值为', e.target.value) console.log('switch1 发生 change 事件,携带值为', e.detail.value)
}, },
switch2Change: function (e) { switch2Change: function (e) {
console.log('switch2 发生 change 事件,携带值为', e.target.value) console.log('switch2 发生 change 事件,携带值为', e.detail.value)
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册