<script>
function vote(e){
var total = document.getElementById("total");
var num = total.innerHTML;
num = parseInt(num)+1; //这样就没效果
}
</script>
你没把num赋值给total.innerHTML当然没效果了