javascript bind 的用法(2)
###html
```
<div id="box"></div>
```
###css
```
#box{
width: 100px;
height: 100px;
background-color: #0f9;
}
```
###js
```
var test = {
a: function() {
alert(this.id)
},
b: function() {
}
};
var box = document.getElementById('box');
box.onclick=function() {
test.a.bind(this)();
}
```