创建一个人物信息对象请生成js源码并存放在script中
var person = { name: "John Smith", age: 30, gender: "male", occupation: "software engineer", hobbies: ["coding", "reading", "hiking"], address: { street: "123 Main St", city: "Anytown", state: "CA", zip: "12345" }, contact: { email: "johnsmith@example.com", phone: "555-123-4567" } };
console.log(person); // Outputs the person object to the console.
原文地址: http://www.cveoy.top/t/topic/9Ab 著作权归作者所有。请勿转载和采集!