var item = document.getElementById('drpItem').value;
var createDiv = document.createElement('createDiv');
createDiv.className = 'row';
createDiv.innerHTML = '<input type="text" name="name" value="item" />
答案 0 :(得分:1)
试试这样。'string'+variable+'string'
createDiv.innerHTML = '<input type="text" name="name" value="'+item+'" />