質問編集履歴
3
修正しました。詳細はコメント欄にて
test
CHANGED
File without changes
|
test
CHANGED
@@ -96,8 +96,6 @@
|
|
96
96
|
|
97
97
|
if(p === 2){
|
98
98
|
|
99
|
-
// document.getElementById('zTwo').textContent = 'xx';
|
100
|
-
|
101
99
|
document.getElementById('outText').textContent = array[1];
|
102
100
|
|
103
101
|
document.getElementById('subText').textContent = ',' + array[0];
|
@@ -105,8 +103,6 @@
|
|
105
103
|
}
|
106
104
|
|
107
105
|
if(p === 3){
|
108
|
-
|
109
|
-
// document.getElementById('zThree').textContent = 'xx';
|
110
106
|
|
111
107
|
document.getElementById('outText').textContent = array[2];
|
112
108
|
|
@@ -118,8 +114,6 @@
|
|
118
114
|
|
119
115
|
if(p === 4){
|
120
116
|
|
121
|
-
// document.getElementById('zFour').textContent = 'xx';
|
122
|
-
|
123
117
|
document.getElementById('outText').textContent = array[3];
|
124
118
|
|
125
119
|
document.getElementById('subText').textContent = ',' + array[2];
|
@@ -129,8 +123,6 @@
|
|
129
123
|
}
|
130
124
|
|
131
125
|
if(p === 5){
|
132
|
-
|
133
|
-
// document.getElementById('zFive').textContent = 'xx';
|
134
126
|
|
135
127
|
document.getElementById('outText').textContent = array[4];
|
136
128
|
|
2
補足です。画像を参考にお願いします。
test
CHANGED
File without changes
|
test
CHANGED
@@ -171,3 +171,7 @@
|
|
171
171
|
|
172
172
|
|
173
173
|
```
|
174
|
+
|
175
|
+
![イメージ説明](fdac0663a199f9ec64a7e6430bf629d7.png)
|
176
|
+
|
177
|
+
上記のコードだとこのようになります。Xは選ばれた数字にマークするのものです。分かりづらくてすみませんでした。
|
1
少しタイトルの日本語が可笑しかったので直しました(今も十分変ですが)
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ランダムに並び替えられた配列とそれ
|
1
|
+
ランダムに並び替えられた配列とそれに対応するidを関連付ける方法はありますか?
|
test
CHANGED
File without changes
|