JS实战篇之收缩菜单表单布局 获取节点的两种方式: 1、通过event对象的srcElement属性; 2、通过事件源对象用this传入。 代码如下: < JavaScript 2022-04-25 40 点赞 0 评论 60 浏览