首页 > Web开发 > 详细

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

时间:2018-05-28 11:07:18      阅读:286      评论:0      收藏:0      [点我收藏+]

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的值  

 

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

原文:https://www.cnblogs.com/xiaoxiaossrs/p/9098776.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!