把下拉列表的内容复制到剪切板
function copyToClipBoard(){
try{
var selectUser = document.getElementById("selectUser");
var clipBoardContent="";
var slen = selectUser.options.length;
for(var i = 0; i < slen ; i++){
clipBoardContent += selectUser.options[i].text +"/r/n";
}
window.clipboardData.setData("Text",clipBoardContent);
}catch(ex){
alert("name:"+ex.name+" info:"+ex.message+" desc:"+ex.description);
return false;
}
}