easyUI的messager 可以在屏幕的各個方向彈出提示框,用起來比價方便,但是在提示大量的文本內容的時候easyUI並不會出現滾動條,用起來不方便,messager有個屬性height可以設置easyUI的高度,只要設置爲100% 提示框就會隨着內容大小而變大,前提是顯示的內容要在放入msg之前排好版式,否則還是會挺難看的,messager中的換行需要用到的是br而不是\n
$.messager.show({
title:modulesName+'--未報送機構清單',
msg:decodeURI(isNoReceptionDeptsName),
showType:'slide',
height:'100%',
style:{
left:'',
right:0,
top:document.body.scrollTop+document.documentElement.scrollTop,
bottom:''
}
});
7條數據
1條數據