<a id="a1">如有个变量theVar,我要怎么才能获取a1的href的值呢?获得的值是一个字符串吗?
通过获取a标签节点,然后获取href属性值,就获取到连接了
1、定义一个a标签
2、获取href属性