jQuery

$(selector).attr(attribute,value)

 

$("p") 取标签

$(".calss")取类

$("#id")取id

posted @ 2017-12-21 15:17  音为  阅读(96)  评论(0)    收藏  举报