componentDidMount能获取到真实Dom,但trigger('click')还是失效,有没有大神能解决!
我测试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.
我测试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.