摘要:
1、打开根目录 npm init npm install weui-miniprogram --save 2、打开project.config.json 设置 "packNpmManually": true, "packNpmRelationList": [ { "packageJsonPath": 阅读全文
摘要:
1、背景 上传文件时,如果文件太大(一般指超过30M的文件)会报错,报错原因如下 IIS服务器:限制大文件上传,报413错误码 net core api项目:限制大文件上传,报400错误码 2、首先解决IIS 413错误 定义我们打算上传的字节大小:这里我定义为200M=209715200B 1)打 阅读全文
摘要:
1、写注册表 新建 .reg文件 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\creoparametric] "URL Protocol"="" @="URL:creoparametric" [HKEY_CLASSES_ROOT\c 阅读全文
摘要:
1.安装包 npm install @ngx-translate/core --save npm install @ngx-translate/http-loader --save 2.根模块app.module.ts 引入 import { HttpClientModule, HttpClient 阅读全文
摘要:
1.安装包 npm install @ngx-translate/core --save npm install @ngx-translate/http-loader --save 2.根模块app.module.ts 引入 import { HttpClientModule, HttpClient 阅读全文
摘要:
1、什么是跨域 解决跨域问题,我们得先了解一下,什么是域,什么又是跨域 域:也就是域名 跨域:浏览器从一个域名的网页去请求另一个域名的资源时,域名、端口、协议任一不同,都是跨域,如: 这两个URL同源: https://example.com/foo.html https://example.com 阅读全文
摘要:
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 阅读全文