获取innerHTML的数据,可是我这边数据没有反应

图片说明

var yhm=document.getElementById('txtHint').value
在id为txtHint的input输入值,就可以获取到了