<a href="javascript:;" onclick="changeurl()" id="sxs" >确定</a>
<script>
function changeurl(){
$("#sxs").attr("href","index.html"+"?id="+1+"&sum="+2);
}
</script>
<a href="javascript:;" onclick="changeurl()" id="sxs" >确定</a>
<script>
function changeurl(){
$("#sxs").attr("href","index.html"+"?id="+1+"&sum="+2);
}
</script>