zoukankan      html  css  js  c++  java
  • netcore MVC一些常用

    渲染页面
    @await Html.PartialAsync("_HeaderJs")
    部分可以加也可以不加
    @RenderSection("Scripts", required: false)
    @RenderBody()
    @if (this.Url.ActionContext.RouteData.Values["controller"].ToString() == "Default" && this.Url.ActionContext.RouteData.Values["action"].ToString() == "Index")
    {
        <body class="layui-layout-body layuimini-all">
            <div class="layui-layout layui-layout-admin">
                @RenderBody()
            </div>
            <script src="~/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
            <script src="~/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
            @RenderSection("ScriptsFoot", required: false)
        </body>
    }
    else
    {
        <body class="layui-layout-body layuimini-all">
            <div class="layui-layout layui-layout-admin">
                @RenderBody()
            </div>
            <script src="~/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
            <script src="~/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
            @RenderSection("ScriptsFoot", required: false)
        </body>
    
    
        @*<body>
                <div class="layuimini-container">
                    <div class="layuimini-main">
                        @RenderBody()
                    </div>
                </div>
                <script src="~/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
                <script src="~/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
                @RenderSection("ScriptsFoot", required: false)
            </body>*@
    }
  • 相关阅读:
    Ubuntu(Linux) + mono + jexus +asp.net MVC3 部署
    爬虫代理
    爬取文件时,对已经操作过的URL进行过滤
    Scrapy项目创建以及目录详情
    Scrapy 框架 安装
    爬虫案例
    爬虫基础以及 re,BeatifulSoup,requests模块使用
    Django_Admin操作
    django 权限管理permission
    Node--01
  • 原文地址:https://www.cnblogs.com/wangchuang/p/12162478.html
Copyright © 2011-2022 走看看