<body>
<div id="scrollup">
<div class="link">
<br><a href="http://www.google.com/">Google1</a>
<br><a href="http://www.yahoo.com/">Yahoo</a>
</div>
<div class="link">
<br><a href="http://www.Microsoft.com/">Microsoft</a>
<br><a href="http://www.Apple.com/">Apple</a>
</div>
<div class="link">
<br><a href="http://www.cisco.com/">Cisco</a>
<br><a href="http://www.Dell.com/">Dell</a>
</div>
</div>
</body>
我想使用 JQuery Append 将 Hrefs 列表添加到类中,我有存储在数组中的超链接列表,我想将它们附加到组中,代码显示了我希望如何定义 hrefs
请注意,我不知道数组中有多少个超链接,并且(class =“link”)的数量取决于通过添加的超链接的数量(例如,每个类中有 4 个 href)