js经验总结,持续更新中。。。

1.谷歌控制台报错

Uncaught InvalidStateError: Failed to read the 'selectionStart' property from 'HTMLInputElement': The input element's type ('hidden') does not support selection

此时换火狐测试并没有报错,经过检查后发现报错原因为方法调用过程中,少传递了参数,建议检查可能出问题的代码片段,看看是否有参数未取到。

posted @ 2016-11-16 09:26  zorro的菜鸟笔记  阅读(186)  评论(0编辑  收藏  举报