62,254
社区成员
发帖
与我相关
我的任务
分享
我只知道用js清空。等待高手,关注!<html>
<head></head>
<script>
function clearMe(obj){
obj.value='';
}
</script>
<body>
<input type="text" value="abc" onfocus=clearMe(this)>
<textarea onfocus=clearMe(this)>abc</textarea>
</body>
</html>