小程序
小游戏
企业微信
微信支付
扫描小程序码分享
客户反馈安卓5.1版本web页面有一个onclick事件突然失效,找不到原因。唯一感觉有问题的地方就是对同一个div进行了两次hide。
目前也没有对应的机型进行测试。
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
缓缓地打出一个?
你这是什么环境?
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
function receiveGift() {
$('#mui-backdrop1').hide();
$('#mui-backdrop2').hide();
var checkedCars = "";
var checkedGifts = ""
var radios = $("input[type=radio]:checked");
if (radios.length == 0) {
mui.toast('请选择礼包');
return false;
}
radios.each(function() {
var giftId = $(this).val();
if (checkedGifts == "") {
checkedGifts = giftId;
} else {
checkedGifts += "," + giftId;
})
mui.ajax(contextRootPath + '/weixin/receiveGiftMoren.do', {
data : {
"user_code" : user_code,
"marketingcodes" : JSON.stringify(marketingcodes),
"checkedGifts" : checkedGifts,
},
dataType : 'json',
type : 'POST',
timeout : 30000,
success : function(data) {
error : function(xhr, type, errorThrown) {}
});
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
缓缓地打出一个?
你这是什么环境?
function的开始就是
$('#mui-backdrop1').hide(); (执行这个function之前对该div已经隐藏过一次)
$('#mui-backdrop2').hide();隐藏div,没有执行,别的手机都没遇到这个问题,就oppo手机安卓5.1版本遇到了。。。
function receiveGift() {
$('#mui-backdrop1').hide();
$('#mui-backdrop2').hide();
var checkedCars = "";
var checkedGifts = ""
var radios = $("input[type=radio]:checked");
if (radios.length == 0) {
mui.toast('请选择礼包');
return false;
}
radios.each(function() {
var giftId = $(this).val();
if (checkedGifts == "") {
checkedGifts = giftId;
} else {
checkedGifts += "," + giftId;
}
})
mui.ajax(contextRootPath + '/weixin/receiveGiftMoren.do', {
data : {
"user_code" : user_code,
"marketingcodes" : JSON.stringify(marketingcodes),
"checkedGifts" : checkedGifts,
},
dataType : 'json',
type : 'POST',
timeout : 30000,
success : function(data) {
},
error : function(xhr, type, errorThrown) {}
});
}