ie下对select的innerHTML直接赋值是不起作用的

1
2
3
4
5
6
7
8
9
<html>
<body>
	<select id="test">
	</select>
</body>
<script>
	document.getElementById('test').innerHTML = '<option>动感超人</option>';
</script>
</html>
Copy Code | Run Code