prop應用

 $('[name=selectTime]').prop('checked', false) $("input[name='名字']").attr('checked','true'); 1.添加屬性名稱該屬性就會生效應該使用prop(); 2.是有true,false兩個屬性使用prop(); 3.其他使用attr
相關文章
相關標籤/搜索