1. js动态加载元素并设置属性 摘自(http://www.liangshunet.com/ca/201408/336848696.htm) <div id="parent"></div> function addElementDiv(obj) { var parent = document.getElementById(obj); //添加 div var div = document.createElement("div"); //设…
js <script> var selectId = document.getElementById("VariantType");//获取ID selectId.onchange = function () { var result = selectId.options[selectId.selectedIndex].innerHTML;//获取选中文本 if (result == "Fusion") { //当变异类型的值为Fusion时,变异值为空…