<html> <head> <script type="text/javascript"> /*json的key/value结构,javascript的普通对象 */ var person={ name:"张三", age:20, sex:"男" } alert(person.name); </script> </head> <body> </body> </html>
38、JS取json的值
最新推荐文章于 2023-02-01 15:02:28 发布
<html> <head> <script type="text/javascript"> /*json的key/value结构,javascript的普通对象 */ var person={ name:"张三", age:20, sex:"男" } alert(person.name); </script> </head> <body> </body> </html>