菜单切换
FACESOHO知行者
心灵
记录
远方
赞赏工具
源代码:
点击运行
保存
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>小鸟启蒙(facesoho.com)</title> </head> <body> <a id="facesoho" hreflang="zh-cn" href="http://www.facesoho.com/">小鸟启蒙</a><br> <script> document.write("返回链接的hreflang:"); document.write(document.getElementById('facesoho').hreflang); document.write("<br><br>"); </script> <a id="google" href="http://www.google.com/">Google</a><br> <script> document.getElementById('google').hreflang="no"; document.write("设置链接的hreflang:"); document.write(document.getElementById('google').hreflang); </script> </body> </html>
运行结果