0
這裏我的循環代碼是否可以從'for'創建'變量'?
for(var i=0; i <=10; i++) {
$wrapper.append('<input type="button" style="display:inline-block; margin:10px; border:1px solid #ccc; background-color:#fff; width:30px; height:30px; line-height:26px; cursor:pointer;" class="select" value="'+ i +'"/>');
}
這是我的JS代碼
var a = "<div class='questionerWrapper'>"+I want to add here+"</div>"
入住這裏: 沒有循環(我用硬編碼):https://jsfiddle.net/dedi_wibisono17/7m8mt5rb/
帶環,但我不知道如何將它包含:https://jsfiddle.net/7m8mt5rb/4/
有人能幫忙嗎?或者建議我該怎麼做?謝謝
當然,你有關於任何問題?看你https://jsfiddle.net/MamdouhFreelancer/7m8mt5rb/5/ –
有沒有''
@MamdouhFreelancer:是的,因爲我之前說的,我怎麼叫「對」,到我已經創建 –