问答题 · 前端 · jquery · 2019-11-06 08:02
attr和prop的区别
attr主要用到自定义属性的增删,如:data-url;prop主要用于默认属性的增删,如:checked,readonly
微信小程序:前端开发宝典