2种方式进行监听:一种是全局,一种是局部的 html中: js中: 知识点回顾: A:关于class的绑定 B:set设置data 转载于:https://www.cnblogs.com/zhanghuiyun/p/6483512.html