<!DOCTYPE html>
<html>
<body>
<p id="p1">Hello World!</p>
<select id="ProductSubType" name="ProductSubType" onchange="selectProductSubType(this);" style="width: 125px">
<option value="">-请选择-</option>
</select>
<script>
document.getElementById("p1").innerHTML="New text!";
var oOption = document.createElement("option");
oOption.appendChild(document.createTextNode("111"));
oOption.setAttribute("value", "");
document.getElementById("ProductSubType").innerHTML="";
document.getElementById("ProductSubType").appendChild(oOption);
oOption = document.createElement("option");
oOption.appendChild(document.createTextNode("111"));
oOption.setAttribute("value", "");
document.getElementById("ProductSubType").appendChild(oOption);
alert(document.getElementById("ProductSubType").innerHTML);
</script>
<p>上面的段落被一条 JavaScript 脚本修改了。</p>
</body>
</html>