{
var objs = document
var i;
for(i =
{
if(objs[i]
{
objs[i]
}
}
}
function unselect() //反選
{
var objs = document
var i;
for(i=
{
if(objs[i]
{
if(objs[i]
{
objs[i]
}
else
{
objs[i]
}
}
}
}
function idArray() //得到批量處理的twId
{
var objs = window
var i;
var idArray = new Array();
var j =
for(i=
{
if(objs[i]
{
if(objs[i]
{
idArray[j] = objs[i]
j = j +
}
}
}
return idArray;
}
function evArray() //得到批量處理的city
{
var objs = window
var evObj = window
var i;
var evArray = new Array();
var j =
for(i=
{
if(objs[i]
{
if(objs[i]
{
evArray[j] = evObj[i]
j = j +
}
}
}
return evArray;
}
function selectUser() //把選擇到的值寫到文本框
{
var userIds = new Array();
userIds = idArray();
var userIdString = userIds
document
}
From:http://tw.wingwit.com/Article/program/Java/Javascript/201401/30274.html