Prop and attr have similar functions
Same point: both can get and set attribute values
Difference: When processing checkbox, it is recommended to use prop, because IE browser is not compatible, because It is similar to all individuals. It is recommended to use prop
when removing attributes: removeProp("xxx")
Example:
Get attribute value