![](/img/trans.png)
[英]How do I look for a tag's ID using the known html content inside the tag using javascript or jQuery?
[英]How to retrieve tag's content using jQuery?
我正在嘗試捕獲變量中的值179
<span class="robux " data-se="item-privatesale-price">179</span>
如何在控制台中使用JQuery做到這一點?
使用jQuery的類選擇器
$(".robux").text()
var text = $('.robux').text()
那應該工作
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.