上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 29 下一页
摘要: #搭建环境 ##yarn 安装 yarn npm install -g yarn #创建项目 创建Node.js项目 yarn init 安装electron 使用淘宝镜像 yarn config set ELECTRON_MIRROR https:cdn.npm.taobao.org/dist/e 阅读全文
posted @ 2020-06-08 13:14 easy5 阅读(230) 评论(0) 推荐(0)
摘要: 添加 bootstrap cnpm install bootstrap --save 构建项目结构 在根目录下创建一个文件夹renderder,用于存放渲染进程 / ├── main.js ├── package.json ├── renderder/ ├── index.html #主页 ├── 阅读全文
posted @ 2020-06-07 21:31 easy5 阅读(702) 评论(0) 推荐(0)
摘要: 调试渲染进程 调试渲染进程使用 Chrome 开发者工具,打开方式: Ctr+Shift+I 使用代码打开: // Open the DevTools. mainWindow.webContents.openDevTools() 可能的问题: 开发者工具提示: Electron Security W 阅读全文
posted @ 2020-06-07 16:55 easy5 阅读(2684) 评论(0) 推荐(0)
摘要: electron 资料 开源地址:https://github.com/electron 示例:https://github.com/electron/electron-quick-start 文档:https://www.electronjs.org/docs 教程:https://www.w3c 阅读全文
posted @ 2020-06-07 16:18 easy5 阅读(490) 评论(0) 推荐(0)
摘要: #基本配置 Startup.cs public class Startup { public void ConfigureServices(IServiceCollection services) { services.AddRazorPages(); //RazorPages .... } pub 阅读全文
posted @ 2020-06-02 13:19 easy5 阅读(365) 评论(0) 推荐(0)
摘要: 为什么使用ViewComponet PartView 不能实现业务逻辑 ChildAction 要使用Controller的整个生命周期,开销大 如何使用 新建ViewComponent类: 新建文件ViewComponents,在其里面新建类 CompanySummaryViewComponent 阅读全文
posted @ 2020-06-02 12:57 easy5 阅读(146) 评论(0) 推荐(0)
摘要: 配置文件优先级 1.appsettings.json 2.appsettings..json,比如: appsettings.Development.json 3.环境变量 4.命令行 越靠后,优先级越高,将覆盖前者 添加自定义配置 appsettings.json: { "Logging": { 阅读全文
posted @ 2020-06-02 12:46 easy5 阅读(261) 评论(0) 推荐(0)
摘要: #Layout Shared/_Layout.cshtml <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> <envir 阅读全文
posted @ 2020-06-02 12:21 easy5 阅读(148) 评论(0) 推荐(0)
摘要: #中间件 public class Startup { .... // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. //配置Http请求管道 publi 阅读全文
posted @ 2020-05-30 14:45 easy5 阅读(154) 评论(0) 推荐(0)
摘要: 创建项目 在VS中创建一个空的Asp.Net Core 3.1 Web应用程序 Program.cs public class Program { public static void Main(string[] args) { CreateHostBuilder(args).Build().Run 阅读全文
posted @ 2020-05-30 13:23 easy5 阅读(164) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 29 下一页