<div >
<input type="text" value="邮箱/ID/ID/手机号" class="right">
<script>
// 1、获取事件源
var text = document.querySelector('input')
text.onfocus = function(){
this.value = ''
this.style.borderColor = 'pink'
}
// text.onblur =function (){
// if()
// }
</script>
</div>