From edd23f115dba31d764fdaf75a6207d888d0419d3 Mon Sep 17 00:00:00 2001 From: tangxu <tangxu76880903> Date: 星期二, 26 三月 2024 13:52:09 +0800 Subject: [PATCH] 改API接口 --- WebApi/App_Start/BundleConfig.cs | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/WebApi/App_Start/BundleConfig.cs b/WebApi/App_Start/BundleConfig.cs new file mode 100644 index 0000000..b8461b7 --- /dev/null +++ b/WebApi/App_Start/BundleConfig.cs @@ -0,0 +1,27 @@ +锘縰sing System.Web; +using System.Web.Optimization; + +namespace IStation.WebApi +{ + public class BundleConfig + { + // 鏈夊叧鎹嗙粦鐨勮缁嗕俊鎭紝璇疯闂� https://go.microsoft.com/fwlink/?LinkId=301862 + public static void RegisterBundles(BundleCollection bundles) + { + bundles.Add(new ScriptBundle("~/bundles/jquery").Include( + "~/Scripts/jquery-{version}.js")); + + // 浣跨敤瑕佺敤浜庡紑鍙戝拰瀛︿範鐨� Modernizr 鐨勫紑鍙戠増鏈�傜劧鍚庯紝褰撲綘鍋氬ソ + // 鐢熶骇鍑嗗灏辩华锛岃浣跨敤 https://modernizr.com 涓婄殑鐢熸垚宸ュ叿浠呴�夋嫨鎵�闇�鐨勬祴璇曘�� + bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( + "~/Scripts/modernizr-*")); + + bundles.Add(new Bundle("~/bundles/bootstrap").Include( + "~/Scripts/bootstrap.js")); + + bundles.Add(new StyleBundle("~/Content/css").Include( + "~/Content/bootstrap.css", + "~/Content/site.css")); + } + } +} -- Gitblit v1.9.3