質問編集履歴
2
ミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,13 +24,13 @@
|
|
24
24
|
|
25
25
|
<script>
|
26
26
|
|
27
|
-
var str=
|
27
|
+
var str='{"*":{"id":"1"},"*":{"id":"2"}}';
|
28
28
|
|
29
29
|
//↓下記のように配列名は変わる
|
30
30
|
|
31
|
-
//var str=
|
31
|
+
//var str='{"bba":{"id":"1"},"abb":{"id":"2"}}';
|
32
32
|
|
33
|
-
//var str=
|
33
|
+
//var str='{"zbed":{"id":"1"},"p100":{"id":"2"}}';
|
34
34
|
|
35
35
|
window.onload=function(){
|
36
36
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,6 +26,12 @@
|
|
26
26
|
|
27
27
|
var str="{"*":{"id":"1"},"*":{"id":"2"}}";
|
28
28
|
|
29
|
+
//↓下記のように配列名は変わる
|
30
|
+
|
31
|
+
//var str="{"bba":{"id":"1"},"abb":{"id":"2"}}";
|
32
|
+
|
33
|
+
//var str="{"zbed":{"id":"1"},"p100":{"id":"2"}}";
|
34
|
+
|
29
35
|
window.onload=function(){
|
30
36
|
|
31
37
|
j=JSON.parse(str);
|