JS attr和prop的区别

HTML元素固有属性:使用prop方法

HTML元素自定义属性:使用attr方法

posted @ 2018-12-01 14:24  KevinTseng  阅读(153)  评论(0编辑  收藏  举报