演示
实现代码
<input type="button" id="praise" value="赞(0)">
<script type="text/javascript">
function zan(){
var number=0;
return function(){
this.value="赞("+(++number)+")";
}
}
var zz=zan();
document.getElementById('praise').onclick=zz;
</script>