select转移工具箱(5) if(oSelect.multiple) { for(var selIndex=oSelect.options.length - 1; selIndex>= 0; selIndex--) { //如果设置了移动到顶端标志 if(isToBottom) { if(oSelect.options[selIndex].selected) { var transferIndex = selIndex; while(transferIndex < selLength && !oSelect.options[transferIndex + 1].selected) { oSelect.options[transferIndex].swapNode(oSelect.options[transferIndex + 1]); transferIndex ++; } } } //没有设置移动到顶端标志 else