我有以下代码应该在单击时显示产品详细信息。数据是从数据库中正确获取的,并且在调用 jquery ui 对话框之前我处于警报状态,并且它具有正确的数据。
$("body").append('<div id="popup"></div>');
document.getElementById('popup').innerHTML = "jk;hcjaskda;ldA;LSDMAKDOIDM;A,MCSCM;lc"sac<'LC;MClmca,.c sm,vnkdc ADVdL:VadMVa;dvadvNsmv S/MV s/vn,Va.<VMA:dvma:DVMa<dv d><v a><d S,CVNDMVaA>VM:LDvm;LVMM,CVMAdv<?.vdm;LDVdvDVadvDVDVVVVVVVVVVVVVVVVVVVVVVVVsvdSV/m,vn,m vmn.,c x V/,.ADMNV/ma,.vm./,vm.,vm,DVkldjfk'ejfwejfqlekfmF;LQEJFQ.L,DK;LKKKKKKKKKKKKKKKKKKKKKKKKKKKKK'LWKF;PWOJVMWPOV";
$( '#popup').dialog({
modal: true,
autoOpen: true,
width:500,
height:500,
buttons: {
"Back": function() {
$('#popup').html('');
$('#popup').dialog('close');
}
}
});
弹出窗口仅显示 160 个字符
jk;hcjaskda;ldA;LSDMAKDOIDM;A,MCSCM;lc"sac<'LC;MClmca,.c sm,vnkdc ADVdL:VadMVa;dvadvNsmv S/MV s/vn,Va.<VMA:dvma:DVMa<dv d><v a><d S,CVNDMVaA>VM:LDvm;LVMM,CVMAdv
是显示的内容。不确定它在哪里被截断。该对话框仅显示一个 H 滚动条