easyUI有一个提示框弹出来,上面显示相关的内容,点击有超链接的内容,之后将超链接的页面显示在easyUI框架当前的页面。如下:
点击信息提示上的超链接“”3“”,将内容直接现在在当前的页面上,而不是覆盖当前页面或是弹出新页面。效果入下:
代码:
$.messager.show({
title:'信息提示',
msg:' 您所管辖地区的用户有 <a href="${pageContext.request.contextPath }/s_s?ind=1" style="color:red"target="iframe_nongduTable">${EPApinggucount}</a> 条EPA评估!其中已审阅 <a href="${pageContext.request.contextPath}/s_s?ind=2"
style="color:red" target="iframe_nongduTable"> ${EPApinggufirst}</a> 条,未审阅 <a href="${pageContext.request.contextPath}/s_s?ind=3" style="color:red" target="iframe_nongduTable">${EPApinggusecond}</a> 条',
showType:'slide',
height:140,
});
easyui首页的代码:
<iframe id="iframe_nongduTable" name="iframe_nongduTable" width="100%" height="500px;" ></iframe>
说明:超链接加一个target属性,其值为框架iframe的id。