当我尝试动态创建按钮时,Internet Explorer 显示错误。虽然它在 Firefox 中运行良好
var deleteButton = document.createElement('input');
ratingSliderContainer.appendChild(deleteButton);
deleteButton.setAttribute('type','button');
deleteButton.setAttribute('value','delete');
它在第三行显示错误