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:是的,因为我之前说的,我怎么叫“对”,到我已经创建 –