当我试图给出另一个变量时 href=""
href=""
<a href="a.html" id="a">Hello</a>
以上是我的代码。
我想在去时传递apple名为fruit变量的值a.html。我怎样才能在 JavaScript 或 jQuery 中做到这一点?
apple
fruit
a.html
html javascript jquery href
href ×1
html ×1
javascript ×1
jquery ×1