求大神看个问题,我用layer.load在火狐下是会正常显示出来,但是在谷歌(最新版本),
和win10自带的IE浏览器下就不能显示,这是怎么回事啊,困扰我好久了,难道我用的方法不对吗?图片说明
这是我的代码
ondblClickRow: function(rowid,iRow,iCol,e){ //双击事件
var index = layer.load();//打开layer.load
$('#fangqi').show();//显示放弃客户按钮
var note = $('#table_list_1').getRowData(rowid);
if(note.c_ZD==1){
$('#star').attr('src','static/img/my/star1.png');
}else{
$('#star').attr('src','static/img/my/star2.png');
}
$('#currentCZD').val(note.c_ZD);//置顶状态
$('#currentCID').val(note.c_ID);
document.getElementById('div-content').scrollTop=0;//控制滚动条的位置
$('#showfankuijilu').click();//点击反馈记录
loadConsumerDetail();//加载客户详情信息
getRecordContacts();//加载反馈记录
getPlanContent();//加载设定计划
reloadnum();//刷新数量
ismember();//判断用户是否为会员
$('#openModal').click();//打开模态窗体
layer.close(index);//关闭Layer.load
},
你把layer.load之后到close的代码(包括claose)都注释掉看有效果没有,看你框出来的代码应该都是直接执行的,有可能没显示出来都逕到close关闭了,没有效果
或者延时执行下
var index = layer.load();//打开layer.load
setTimeout(function () {//先给层显示1s再执行////////
$('#fangqi').show();//显示放弃客户按钮
var note = $('#table_list_1').getRowData(rowid);
if (note.c_ZD == 1) {
$('#star').attr('src', 'static/img/my/star1.png');
} else {
$('#star').attr('src', 'static/img/my/star2.png');
}
$('#currentCZD').val(note.c_ZD);//置顶状态
$('#currentCID').val(note.c_ID);
document.getElementById('div-content').scrollTop = 0;//控制滚动条的位置
$('#showfankuijilu').click();//点击反馈记录
loadConsumerDetail();//加载客户详情信息
getRecordContacts();//加载反馈记录
getPlanContent();//加载设定计划
reloadnum();//刷新数量
ismember();//判断用户是否为会员
$('#openModal').click();//打开模态窗体
layer.close(index);//关闭Layer.load
}, 1000);