1.
複製碼
程式碼如下:<script>< > { </script>
"c1" : {"UserID":"userc1","UserName":"usercc1"},
},
"c3" : {"UserID":"userc3","UserName":"usercc3"}
};
};
);
alert(ht["c2"]["UserID"]);
3
<script><div class="codebody" id="code74409"> var Arr =new Array({'s':'sss','aa': 'www'},{'s1':'wwww','aa1':'ssss'});<BR> alert(Arr[0].s);<BR> alert(Arr[0].aa); <BR> alert(Arr[1].s1);<BR> alert(Arr[1].aa1);<BR></script>