$('input').on('blur',function(){ console.log($(this).val())})
需要引入jquery。$(this).val() 就是失去焦点后input 框的值