01 2021 档案
摘要:1.IIS服务器需要安装插件 安装 Url https://www.iis.net/downloads/microsoft/url-rewrite 2.修改配置 在src目录下,添加 web.config <configuration> <system.webServer> <rewrite> <r
阅读全文
摘要:1.安装库和依赖 npm i echarts --save npm i ngx-echarts --save npm i resize-observer-polyfill --save-dev 2.相关配置 在module添加 import { NgxEchartsModule } from 'ng
阅读全文
摘要:第一部分:封装http请求 1.定义 ResultDataModel export interface ResultDataModel<T> { success: boolean; errCode: number; message: string; data: T; pageModel: PageM
阅读全文
摘要:1.新建项目(带路由) ng new demo --routing 2.新建组件 统一放到components目录下(文件夹会自动创建) ng g component components/home 在components下新建文件夹 home,并创建四个组件文件 3.新建服务 ng g servi
阅读全文
摘要:ng add @angular/material 自定义预构建主题 ? Choose a prebuilt theme name, or "custom" for a custom theme: Custom ? Set up global Angular Material typography s
阅读全文