JavaScript
JavaScript Window Location
加载一个新的文档
源代码:
点击运行 »
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>蜜蜂教程(mifengjc.com)</title> </head> <head> <script> function newDoc() { window.location.assign("https://www.mifengjc.com") } </script> </head> <body> <input type="button" value="加载新文档" onclick="newDoc()"> </body> </html>
运行结果:
点击运行 »