以下这段代码可以直接写在jsp中:
<script type="text/javascript">var tValue;
setInterval(function(event){
if(tValue !=document.getElementById("jcxmc").value){
//这里写自己的业务逻辑代码
tValue =document.getElementById("jcxmc").value;
ShowXmTree("jcxmc");
}
},10);
</script>