C#MVC+Layui 视图间的跳转
$("#btnThreme").click(function () {var w = ($(window).width() * 0.9);var h = ($(window).height() - 40);layer.open({resize: false,title: '目标视图的新标题',shadeClos...
·
HTML部分:
<button type="Button" class="layui-btn layui-btn-normal" id="btnThreme" lay-filter="data-search-btn" style="margin-left:40px;">查看</button>
$("#btnThreme").click(function () {
var w = ($(window).width() * 0.9);
var h = ($(window).height() - 40);
layer.open({
resize: false,
title: '目标视图的新标题',
shadeClose: true,
area: [w + 'px', h + 'px'],
type: 2,
content: '../SuperVisor/Theme/Index',
success: function (layero, index) {
var body = layer.getChildFrame('body', index);
}
});
return false;
});
效果:
更多推荐
已为社区贡献2条内容
所有评论(0)