<button id='button'>Click</button>
<script>
function Object(){
this.something = 0;
this.button = document.getElementById('button');
button.onclick = function(){
console.log(this.something++);
};
}
var obj = new Object();
</script>
我对上面这样的代码有些问题。有没有办法在单击按钮触发的匿名函数中更改对象属性(this.something)?