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