JS 获取 标签

<div class="mt-15 price-type js-price-type">


        <a class="price-num" href="javascript:;">$999${Profile.priceType}</a>
        <span class="li">hh</span>

hh
hh
hh

$().ready(function(){
$('.js a')//这种是获取div下面的 a标签 jquery对象
})

$(s.li)这种是找到拿到span的所有标签 找到class为li的 span标签

你可能感兴趣的:(JS 获取 标签)