componentDidMount能获取到真实Dom,但trigger('click')还是失效,有没有大神能解决!
1 回答
眼眸繁星
TA贡献1873条经验 获得超9个赞
我测试input text,$('').focus是有效的,input file无效,问题应该是浏览器做了安全限制。
This is due to a security restriction.Most browsers prevent submitting files when the input field didn't receive a direct click or keyboard click event as a security precaution.
添加回答
举报
0/150
提交
取消