<html>
<head>
<style type="text/css" >
div{width: 200px;height: 100px;background: red}
</style>
</head>
<body>
<div id = 'box'> </div>
</body>
<script type="text/javascript">
document.getElementById('box').onclick = function (){
this.style.background = 'blue';
this.innerText = 'hello,i think i can do';
}
//document.getElementById('box').onclick =bian;
//document.getElementById('box').onclick =bian;
</script>
</html>