1
<a id="mifengjc" hreflang="zh-cn" href="https://www.mifengjc.com/">蜜蜂教程</a><br>
2
<script>
3
document.write("返回链接的hreflang: ");
4
document.write(document.getElementById('mifengjc').hreflang);
5
document.write("<br><br>");
6
</script>
7
<a id="google" href="http://www.google.com/">Google</a><br>
8
<script>
9
document.getElementById('google').hreflang = "no";
10
document.write("设置链接的hreflang: ");
11
document.write(document.getElementById('google').hreflang);
12
</script>