<script type="text/javascript"> var obj = {school:"河北农大"}; function test() { obj.userId = 1; obj["userName"] = "cheng"; alert(obj.school); alert(obj.userId); alert(obj.userName); } </script> 相关文章: