Jquery错误-Failed to read the 'selectionDirection' property

jquery提示错误

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

接锅侠,发现点击按钮没反应,又在支付宝里面调试页面,用spy-debug调试不了。

最后只能用vconsle,发现里面的功能也点击不了。但还能看出报什么错。

最后发现,代码里面有个地方少写了。

原代码:
$("body").find(".expressSelect2 option");

改后的代码:
$("body").find(".expressSelect2 option").val();

 

但还是跟select 有关。因为获取的是select的值  

 

posted @ 2018-05-28 10:21  笑笑~上善若水  阅读(589)  评论(0编辑  收藏  举报