编辑下面的代码:【加编码】
<html> <body> <script> document.write(location.port); </script> <p><b>Note:</b> If the port number is 80 (which is the default port number), nothing will be returned!</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂