• MVC方式使用EasyUI


    _Layout.cshtml

     1 <!DOCTYPE html>
     2 <html>
     3 <head>
     4     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     5     <meta charset="utf-8" />
     6     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     7     <title>@ViewBag.Title - 我的 ASP.NET 应用程序</title>
     8     @Styles.Render("~/easyui/css")
     9 </head>
    10 <body>
    11     @RenderBody()
    12 
    13     @Scripts.Render("~/easyui/js")
    14     @RenderSection("scripts", required: false)
    15 </body>
    16 </html>
    View Code

    BundleConfig.cs

     1 using System.Web;
     2 using System.Web.Optimization;
     3 
     4 namespace WebApplication1
     5 {
     6     public class BundleConfig
     7     {
     8         public static void RegisterBundles(BundleCollection bundles)
     9         {
    10             bundles.Add(new ScriptBundle("~/easyui/js").Include(
    11              "~/easyui/jquery.min.js",
    12              "~/easyui/jquery.easyui.min.js",
    13              "~/easyui/locale/easyui-lang-zh_CN.js"));
    14 
    15             bundles.Add(new StyleBundle("~/easyui/css").Include(
    16                       "~/easyui/themes/bootstrap/easyui.css",
    17                       "~/easyui/themes/icon.css"));
    18 
    19         }
    20     }
    21 }
    View Code

    index.cshtml

     1 @{
     2     ViewBag.Title = "Home Page";
     3 }
     4 
     5 <h2>Basic PasswordBox</h2>
     6 <p>The passwordbox allows a user to enter passwords.</p>
     7 <div style="margin:20px 0;"></div>
     8 <div class="easyui-panel" style="400px;padding:50px 60px">
     9     <div style="margin-bottom:20px">
    10         <input class="easyui-textbox" prompt="Username" iconWidth="28" style="100%;height:34px;padding:10px;">
    11     </div>
    12     <div style="margin-bottom:20px">
    13         <input class="easyui-passwordbox" prompt="Password" iconWidth="28" style="100%;height:34px;padding:10px">
    14     </div>
    15 </div>
    View Code

  • 相关阅读:
    图论:带花树算法-一般图最大匹配
    图论&数学:最小平均值环
    图论:朱刘算法
    图论&动态规划:虚树
    图论:动态点分治
    图论:平面图的对偶图
    图论:DFS序
    打开页面时,所有节点展开(ztree)
    Vue 常用记录
    Vue v-if and v-for
  • 原文地址:https://www.cnblogs.com/liessay/p/11934849.html
Copyright © 2020-2023  润新知