App下载
实例代码( Tip: 登录后体验更佳 )
运行结果
<!DOCTYPE html> <html> <head> <meta charset=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"utf-8\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"> <title>W3Cschool教程(w3cschool.cn)</title> </head> <body> <h1>我的第一个 JavaScript 程序</h1> <p id=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"demo\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">这是一个段落</p> <button type=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"button\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" onclick=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"displayDate()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">显示日期</button> </body> </html>