Javascript操作完istBox, 服务器端的ITEMS里取不到?

honkerhero honkerhero 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
function MoveAll(fromListId, toListId)
{
var fromList = document.getElementById(fromListId)
var toList = document.getElementById(toListId);
while(fromList.hasChildNodes())
{
var firstNode = fromList.firstChild;
fromList.removeChild(firstNode);
toList.appendChild(firstNode);
}
}

function MoveSelected(fromListId, toListId)
{
var fromList = document.getElementById(fromListId)
var toList = document.getElementById(toListId);

var refOption;

for(i=fromList.childNodes.length -1; i > -1; i--)
{
var optionNode = fromList.childNodes[i];
if(optionNode.selected)
{
fromList.removeChild(optionNode);
if(refOption)
toList.insertBefore(optionNode,refOption);
else
toList.appendChild(optionNode);
refOption = optionNode;
}
}
}


代码如上,移动是没问题的,但是提交到服务器端,LISTBOX。ITEMS里没有,为什么?如何解决?
...全文
评论 3
收藏 已收藏
分享
返回顶部
honkerhero
C# 111,129 成员 642,540 内容