componentDidMount能获取到真实Dom,但trigger('click')还是失效,有没有大神能解决!
滿天的星座2017-05-19 10:39:43
我测试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.