jQuery

$(selector).attr(attribute,value)

$("p") 取标签

$(".calss")取类

$("#id")取id

原文地址:https://www.cnblogs.com/lhang55/p/8080732.html