我对onselect和onchange事件的误解
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>onselect与onchange的区别</title>
<script>=function(){
("inputId").onselect=function(){
alert("select");
}
("inputId").onchange=function(){
alert("change");
}
}
</script>
</head>
<body>
<input type="text" value="huangbaokang" id="inputId" >
</body>
</html>