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.