// 监听一个事件并返还一个卸载函数 const { remove } = my.on('newInput', function(opt) { }); console.log("get input:", input);
// 卸载监听 my.off('newInput', callback);