源代码:
<!DOCTYPE html> <html> <body> <script> person={firstname:"John",lastname:"Doe",age:50,eyecolor:"blue"} document.write(person.firstname + " is " + person.age + " years old."); </script> </body> </html>
测试结果:
wowef.com
- 在线测试