var muiDiv = document.getElementById(‘mui-content‘);
createInput(‘img‘,‘text‘,imgSrc,muiDiv);
function createInput(inputName, inputType, inputValue, aDiv) {
var input = document.createElement("input");
input.setAttribute("type",inputType) ;
input.setAttribute("name",inputName) ;
input.setAttribute("value", inputValue) ;
aDiv.appendChild(input);
}
时间: 2024-09-30 06:37:05