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);
}
这个问题后来发现是我的值没传递下来。。。只要值传递下来了给值正确就不会有这个问题了