标签:div col color 选项 cat bsp var move span
1、appendChild()
var selectbox1 = document.getElementById(‘selLocations1‘); var selectbox2 = document.getElementById(‘selLocations2‘); selectbox2.appendChild( selectbox1.options[0] );
2、insertBefore()
var optionToMove = selectbox.options[1];
selectbox.insertBefore(optionToMove,selectbox.options[optionToMove.index+2]);
标签:div col color 选项 cat bsp var move span
原文地址:https://www.cnblogs.com/jokes/p/9903308.html