本篇文章小编给大家分享一下layui页面级弹出框代码实现方法,文章代码介绍的很详细,小编觉得挺不错的,现在分享给大家供大家参考,有需要的小伙伴们可以来看看。
home/Index.cshtml
@{ ViewData["Title"] = "Home Page"; }
TestController.cs
using Microsoft.AspNetCore.Mvc; using System; using System.Threading.Tasks; namespace layuidemo.Controllers { public class TestController : Controller { public async TaskIndex() { await Task.Delay(TimeSpan.FromSeconds(5)); return View(); } } }
Test/Index.cshtml
@* For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 *@ @{ Layout = null; }HI world GGFLY
运行效果:lay-filter="first" 会重新渲染表单,lay-filter="second" 不会重新渲染