javascript怎么接收对方的值,再把接收的值自动分配到每个题

来源:百度知道 编辑:UC知道 时间:2024/06/06 02:23:20
我现在做的每个题是自己设定好的分数,现在须要根据接收的值自动去分配。请高手指教一下。谢谢
我现在是
<script>
var list=0
当选中这个时 list=list+1
</script>
请问我怎么让它变成变量,当获取到一个值时,自动分配

给你个小例子

<a href=\"###\" onclick=\"javascript:if(window.confirm('确定要删除帖子吗?')) deleteForumTitle('" + mClassId + "','" + nClassId + "','" + brandId + "','" + productId + "','" + forumTitleId + "');\">删除</a>

<script>
//链接到删除该评论的页
function getconfirm(mClassId,nClassId,brandId,productId,forumTitlesId,forumId,pageNum)
{
window.location="DeleteForumCommand.aspx?MclassId=" + mClassId + "&NclassId=" + nClassId + "&BrandId=" +
brandId + "&ProductId=" + productId + "&ForumTitleId=" + forumTitlesId + "&writeBackForumId="+forumId+"&pageNum="+pageNum;
}
<script>