聯絡E-mail: sean0704@gmail.com
var a = {'a':'a1', 'b':'b1', 'c':'c1'}; //物件 //陣列也可以 a['a'] = 'a1';a['b'] = 'b1';a['c'] = 'c1'; var s = ''; for(var k in a){ s += '鍵:' + k + '、值:' + a[k]; s += '<br />'; }
No comments:
Post a Comment