fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <script> function displayResult(){ document.body.style.backgroundColor="#f3f3f3"; } </script> </head> <body> <h1>Hello World!</h1> <br> <button type="button" onclick="displayResult()">设置背景颜色</button> </body> </html>
运行结果