js经验总结,持续更新中。。。
1.谷歌控制台报错
Uncaught InvalidStateError: Failed to read the 'selectionStart' property from 'HTMLInputElement': The input element's type ('hidden') does not support selection
此时换火狐测试并没有报错,经过检查后发现报错原因为方法调用过程中,少传递了参数,建议检查可能出问题的代码片段,看看是否有参数未取到。