Appearance
选择事件。
type: 'switch'
state: 1
timestamp: 1578973450142
let switch = new Switch(); switch.addEventListener('switch', (event) => { console.log('state: ' + event.state); });