The input element's type ('hidden') does not support selection

clipboard.png

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

不懂这是为什么导致的~有过来人帮忙解毒下吗?代码如下

    function eventUp(e){    
            layer(ctx);
        e.preventDefault();
        mousedown=false;
            setTimeout(function(){
            $.alert(awardsmsg, "msg", function() {
                $.ajax({
                    method: "POST",
                    url: "max.php",
                    data: {
                        unionid: unionid,
                        openid: openid,
                        nickname: nickname,
                        exchange: awardsexchange
                    },
                    success: function(){
                        wx.closeWindow();                                            
                    }
            });
            });    
            },456);
    }
阅读 5.2k
2 个回答

这个问题后来发现是我的值没传递下来。。。只要值传递下来了给值正确就不会有这个问题了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题