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