-4
我想在我的新腳本中使用$$
,但我不知道應添加或包含哪些行。
例如:
如何在Greasemonkey的使用以下行?我應該包括什麼?
$$('.steps-list li a').forEach(a => console.log(a.href))
我想在我的新腳本中使用$$
,但我不知道應添加或包含哪些行。
例如:
如何在Greasemonkey的使用以下行?我應該包括什麼?
$$('.steps-list li a').forEach(a => console.log(a.href))
你說的是jQuery嗎?
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
不確定你的意思。請編輯澄清/添加更多細節。 –
@DavidMakogon我添加一個例子 –