摘要:
1:创建服务:ng g service services/request 2:使用rxjs就需要在service 中引用: import { Observable } from 'rxjs'; 3:在组件中引用服务: import { RequestService } from '../../ser 阅读全文
摘要:
1:新建项目后,新增两个组件: ng g component relations/footer (子组件) ng g component relations/home (父组件) 2:引用 在app.component.html中引用home标签:<app-home></app-home> 在hom 阅读全文
摘要:
1:在新项目中,新增 dom-operaiton 和 sub-dom 两个组件,并且 sub-dom放入 dom-operation中 ng g component components/dom-operaiton ng g component components/sub-dom 在 dom-op 阅读全文
摘要:
基于上一篇内容,先打开vscode终端 1:创建服务: ng g service services/storage 2:数据双向绑定记得引用form moduler, 使用服务记得要引用服务,如下: 在app.module.ts中,引入并配置服务: import { StorageService } 阅读全文
摘要:
1:使用vscode打开事先准备好的空项目 2:创建表单组件:ng g component components/form 3:在app.component.html中引用该标签:<app-form></app-form> 4:引用表单组件,才能实现双向绑定,在app.module.ts里面: im 阅读全文
摘要:
1:下载nodejs : https://nodejs.org/en/ 推荐稳定版本 2: 安装 angular CLI 因为angular-cli是用typescript写的,所以要先装这两个npm install -g typescript typings,安装方式如下2中: 安装方法一:npm 阅读全文
摘要:
1:使用Aspose.Cells.dll方式 ps: Aspose.Cells 插件 是收费插件 使用过程可能存在的问题:单元格数据大于32K不能写入excel 处理方式: 可将过大的单元格数据写入文本框等 读取数据,当行列数超过一定范围会报错: 如果出现以下情况之一,则可能显示此消息:文件所含行列 阅读全文
摘要:
项目框架介绍: 1:Application: 在service里面事件具体业务,Dto相当于viewmodel实现了验证 2:Core:实现了数据层Model 3:EntityFrameworkCore: 数据库管理 对Model的改动使用 add-migration xxxx(这里是你给这次迁移文 阅读全文
摘要:
使用abp模板进行项目开发: 1:准备工作:我使用v2.x版本,所以会依赖.net core 2.2 查看并更新本地环境: 更新.net core版本:cmd 运行 dotnet --version查看本机版本(我的是core 2.1) 通过下载安装sdk更新core版本:https://dotne 阅读全文
摘要:
答案:Hello678 解析:\r 返回一行的开头,并且占用前面的位数 阅读全文