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

jquery提示错误javascript

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

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

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

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

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

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

 

但仍是跟select 有关。由于获取的是select的值  debug

相关文章
相关标签/搜索