1 前言 早就想总结一下,但是没时间,这次有时间了,就详细的把步骤写出来. 2 步骤 2.1 添加区域 右键项目->添加->区域,如图1: 区域名称:Ceshi 添加完之后解决方案管理器会增加如图所示目录 并且弹出一个附有代码的窗体 Scaffolding has generated all the files and added the required dependencies. However the Application's Startup code may required add
做net项目时候,在Global.asax文件中可以通过Application_Error方法全局捕获异常并处理后统一跳转到自定义的错误页面. 下面是我个人在NetCore项目中实现全局捕获异常并统一处理的功能的记录,以便备份. 1.在项目根目录新建文件夹Filter,并在文件夹下新建类,命名为GlobalExceptionFilter.cs using Microsoft.AspNetCore.Mvc.Filters; using System; using CMSCore.Web.Core;
1.填写全局config.js function getConfig(str){ var ajaxurl = "http://112.80.39.92:8008/webservices/rest.php?version=1.1"//测试 // var ajaxurl = "http://112.80.39.92:8018/webservices/rest.php?version=1.1"//生产 switch(str){ case "ajaxurl&quo