原生js document.querySelector("div[dataid=222]") jquery $("div[dataid=222]") 操作所以元素的某个属性 $("*[dataid=222]")