{"id":232,"date":"2012-04-03T11:36:54","date_gmt":"2012-04-03T11:36:54","guid":{"rendered":"be83ab3ecd0db773eb2dc1b0a17836a1"},"modified":"2012-04-03T11:36:54","modified_gmt":"2012-04-03T11:36:54","slug":"","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/232","title":{"rendered":"js array \u65b9\u6cd5"},"content":{"rendered":"<div>\n<h2>Array \u5bf9\u8c61\u7684\u65b9\u6cd5<\/h2>\n<p>FF: Firefox, N: Netscape, IE: Internet Explorer<\/p>\n<table class=\"dataintable\">\n<tbody>\n<tr>\n<th>\u65b9\u6cd5<\/th>\n<th>\u63cf\u8ff0<\/th>\n<th>FF<\/th>\n<th>N<\/th>\n<th>IE<\/th>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_concat_array.asp\"><span style=\"color:#6fbc4c;\">concat()<\/span><\/a><\/td>\n<td>\u8fde\u63a5\u4e24\u4e2a\u6216\u66f4\u591a\u7684\u6570\u7ec4\uff0c\u5e76\u8fd4\u56de\u7ed3\u679c\u3002<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_join.asp\"><span style=\"color:#6fbc4c;\">join()<\/span><\/a><\/td>\n<td>\u628a\u6570\u7ec4\u7684\u6240\u6709\u5143\u7d20\u653e\u5165\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002\u5143\u7d20\u901a\u8fc7\u6307\u5b9a\u7684\u5206\u9694\u7b26\u8fdb\u884c\u5206\u9694\u3002<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_pop.asp\"><span style=\"color:#6fbc4c;\">pop()<\/span><\/a><\/td>\n<td>\u5220\u9664\u5e76\u8fd4\u56de\u6570\u7ec4\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>5.5<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_push.asp\"><span style=\"color:#6fbc4c;\">push()<\/span><\/a><\/td>\n<td>\u5411\u6570\u7ec4\u7684\u672b\u5c3e\u6dfb\u52a0\u4e00\u4e2a\u6216\u66f4\u591a\u5143\u7d20\uff0c\u5e76\u8fd4\u56de\u65b0\u7684\u957f\u5ea6\u3002<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>5.5<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_reverse.asp\"><span style=\"color:#6fbc4c;\">reverse()<\/span><\/a><\/td>\n<td>\u98a0\u5012\u6570\u7ec4\u4e2d\u5143\u7d20\u7684\u987a\u5e8f\u3002<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_shift.asp\"><span style=\"color:#6fbc4c;\">shift()<\/span><\/a><\/td>\n<td>\u5220\u9664\u5e76\u8fd4\u56de\u6570\u7ec4\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>5.5<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_slice_array.asp\"><span style=\"color:#6fbc4c;\">slice()<\/span><\/a><\/td>\n<td>\u4ece\u67d0\u4e2a\u5df2\u6709\u7684\u6570\u7ec4\u8fd4\u56de\u9009\u5b9a\u7684\u5143\u7d20<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_sort.asp\"><span style=\"color:#6fbc4c;\">sort()<\/span><\/a><\/td>\n<td>\u5bf9\u6570\u7ec4\u7684\u5143\u7d20\u8fdb\u884c\u6392\u5e8f<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_splice.asp\"><span style=\"color:#6fbc4c;\">splice()<\/span><\/a><\/td>\n<td>\u5220\u9664\u5143\u7d20\uff0c\u5e76\u5411\u6570\u7ec4\u6dfb\u52a0\u65b0\u5143\u7d20\u3002<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>5.5<\/td>\n<\/tr>\n<tr>\n<td>toSource()<\/td>\n<td>\u4ee3\u8868\u5bf9\u8c61\u7684\u6e90\u4ee3\u7801<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>-<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_toString_array.asp\"><span style=\"color:#6fbc4c;\">toString()<\/span><\/a><\/td>\n<td>\u628a\u6570\u7ec4\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u5e76\u8fd4\u56de\u7ed3\u679c\u3002<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td class=\"no_wrap\"><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_toLocaleString_array.asp\"><span style=\"color:#6fbc4c;\">toLocaleString()<\/span><\/a><\/td>\n<td>\u628a\u6570\u7ec4\u8f6c\u6362\u4e3a\u672c\u5730\u6570\u7ec4\uff0c\u5e76\u8fd4\u56de\u7ed3\u679c\u3002<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_unshift.asp\"><span style=\"color:#6fbc4c;\">unshift()<\/span><\/a><\/td>\n<td>\u5411\u6570\u7ec4\u7684\u5f00\u5934\u6dfb\u52a0\u4e00\u4e2a\u6216\u66f4\u591a\u5143\u7d20\uff0c\u5e76\u8fd4\u56de\u65b0\u7684\u957f\u5ea6\u3002<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>valueOf()<\/td>\n<td>\u8fd4\u56de\u6570\u7ec4\u5bf9\u8c61\u7684\u539f\u59cb\u503c<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td>4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<h2>Array \u5bf9\u8c61\u7684\u5c5e\u6027<\/h2>\n<p>FF: Firefox, N: Netscape, IE: Internet Explorer<\/p>\n<table class=\"dataintable\">\n<tbody>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u63cf\u8ff0<\/th>\n<th>FF<\/th>\n<th>N<\/th>\n<th>IE<\/th>\n<\/tr>\n<tr>\n<td>constructor<\/td>\n<td>\u5bf9\u521b\u5efa\u6b64\u5bf9\u8c61\u7684\u51fd\u6570\u7684\u4e00\u4e2a\u5f15\u7528<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>index<\/td>\n<td>&nbsp;<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>input<\/td>\n<td>&nbsp;<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_length_array.asp\"><span style=\"color:#6fbc4c;\">length<\/span><\/a><\/td>\n<td>\u8bbe\u7f6e\u6216\u8fd4\u56de\u6570\u7ec4\u4e2d\u5143\u7d20\u7684\u6570\u76ee\u3002<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>prototype<\/td>\n<td>\u4f7f\u60a8\u6709\u80fd\u529b\u5411\u5bf9\u8c61\u6dfb\u52a0\u5c5e\u6027\u548c\u65b9\u6cd5<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td>4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div>\n<h2>Array \u5bf9\u8c61\u7684\u65b9\u6cd5<\/h2>\n<p>FF: Firefox, N: Netscape, IE: Internet Explorer<\/p>\n<table class=\"dataintable\">\n<tbody>\n<tr>\n<th>\u65b9\u6cd5<\/th>\n<th>\u63cf\u8ff0<\/th>\n<th>FF<\/th>\n<th>N<\/th>\n<th>IE<\/th>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_concat_array.asp\"><span style=\"color:#6fbc4c;\">concat()<\/span><\/a><\/td>\n<td>\u8fde\u63a5\u4e24\u4e2a\u6216\u66f4\u591a\u7684\u6570\u7ec4\uff0c\u5e76\u8fd4\u56de\u7ed3\u679c\u3002<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_join.asp\"><span style=\"color:#6fbc4c;\">join()<\/span><\/a><\/td>\n<td>\u628a\u6570\u7ec4\u7684\u6240\u6709\u5143\u7d20\u653e\u5165\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002\u5143\u7d20\u901a\u8fc7\u6307\u5b9a\u7684\u5206\u9694\u7b26\u8fdb\u884c\u5206\u9694\u3002<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_pop.asp\"><span style=\"color:#6fbc4c;\">pop()<\/span><\/a><\/td>\n<td>\u5220\u9664\u5e76\u8fd4\u56de\u6570\u7ec4\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>5.5<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_push.asp\"><span style=\"color:#6fbc4c;\">push()<\/span><\/a><\/td>\n<td>\u5411\u6570\u7ec4\u7684\u672b\u5c3e\u6dfb\u52a0\u4e00\u4e2a\u6216\u66f4\u591a\u5143\u7d20\uff0c\u5e76\u8fd4\u56de\u65b0\u7684\u957f\u5ea6\u3002<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>5.5<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_reverse.asp\"><span style=\"color:#6fbc4c;\">reverse()<\/span><\/a><\/td>\n<td>\u98a0\u5012\u6570\u7ec4\u4e2d\u5143\u7d20\u7684\u987a\u5e8f\u3002<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_shift.asp\"><span style=\"color:#6fbc4c;\">shift()<\/span><\/a><\/td>\n<td>\u5220\u9664\u5e76\u8fd4\u56de\u6570\u7ec4\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>5.5<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_slice_array.asp\"><span style=\"color:#6fbc4c;\">slice()<\/span><\/a><\/td>\n<td>\u4ece\u67d0\u4e2a\u5df2\u6709\u7684\u6570\u7ec4\u8fd4\u56de\u9009\u5b9a\u7684\u5143\u7d20<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_sort.asp\"><span style=\"color:#6fbc4c;\">sort()<\/span><\/a><\/td>\n<td>\u5bf9\u6570\u7ec4\u7684\u5143\u7d20\u8fdb\u884c\u6392\u5e8f<\/td>\n<td>1<\/td>\n<td>3<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/www.w3school.com.cn\/js\/jsref_splice.asp\"><span style=\"color:#6fbc4c;\">splice()<\/span><\/a><\/td>\n<td>\u5220\u9664\u5143\u7d20\uff0c\u5e76...<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p> <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/232\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[273],"tags":[9],"class_list":["post-232","post","type-post","status-publish","format-standard","hentry","category-article","tag-js"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=232"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/232\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}