[英]How can I find a label that is in a webpart, but not in .js files?
嘗試使用
document.getElementsByClassName("nf-label-control")[0]
或 jQuery
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script type="text/javascript">
var labelText = $(".nf-label-control").text()
</script>
如果需要進一步幫助,請提供更多詳細信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.