分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 软件开发

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

发布时间:2023-09-06 01:56责任编辑:沈小雨关键词:暂无标签

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

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved