jquery文本框失去焦点怎么获取不到值

$('input').on('blur',function(){console.log($(this).val())})

需要引入jquery。
$(this).val()是失去焦点后输入框的值