怎样在html中的href属性使用javascript变量? 日期:2019-08-23 21:26:08 人气:1 怎样在html中的href属性使用javascript变量? //这样会是当前页面打开 可以给a一个id document.getElementById("url").href = url_search;