开启angular10第一个项目 is a project mainly written in , based on the . 注意!nodejs v13+版本无法安装angular10,会报错 //安装最新版npm install -g @angular/cli@latest 完事儿后,输入 ng --version 验证是否安装完毕,出现如下内容代表安装成功 然后,创建一个ng10的项目 ng new projectName或ng...
Vue element upload 控件用form-data上传方式导入xls文件 is a project mainly written in , based on the .
【亲测可用→防止入坑Routes】设置angular10项目异步加载、惰性加载、懒加载路由 is a project mainly written in , based on the .创建一个带路由的项目,依次执行下面每行代码 ng n RouingApp --routingcd RouingAppng g c components/firstng g c components/secondng g m components/second --routing 代码拷贝: import {NgModul...
设置Fetch快捷键Ctrl+Alt+Shift+1 is a project mainly written in , based on the .在提交代码之前,建议最好先Fetch代码下来(如果有冲突,系统会提示),然后再操作Merge到本地分支,这样做是为了避免有其他人同时修改了当前分支,如果直接用Ctrl+T(pull代码)极有可能覆盖本地分支最新代码,安全起见先Fetch代码(Ctrl+Alt+Shift+1)——所谓:小心驶得万年船!...
Vue element 导出blob后台文件流xlsx文件自动下载(且规避乱码) is a project mainly written in , based on the .通常情况blob后台文件流都是如下图这样让人崩溃的乱码
设置显示Git的修改历史History快捷键Alt+H,方便多人开发的时候快速查看谁修改了代码 is a project mainly written in , based on the . ...
Webstorm设置git pull快捷键Ctrl+Shift+P is a project mainly written in , based on the .Ctrl+Shift+P就可以唤起...
【请求后台接口】30秒完成Angular10精简版HttpClient请求服务搭建 is a project mainly written in , based on the .ng g s services/http app.module.ts ... @NgModule({declarations: [...],imports: [...HttpClientModule,//这个很重紧要,没有就会报错],providers: [],bootstrap: [AppComponent] }) expor...
解决vue项目build之后部署到服务器访问的时候出现报错:Uncaught SyntaxError: Unexpected token ‘<‘ chunk-vendors:XXXXXX is a project mainly written in , based on the .第一种情况修改下面这个位置 第二种情况修改 如果还是不行就把模式改成hash...
【实用快捷键】设置WebStorm中Show in Explorer(在资源管理器中打开)快捷键Alt+Shift+R(类似VSCode) is a project mainly written in , based on the ....
Webstorm设置TSlint格式化TypeScript代码快捷键Alt+X is a project mainly written in , based on the ....
设置WebStorm用Ctrl+鼠标滚轮上、下调整编辑器代码字体大小 is a project mainly written in , based on the ....
设置WebStorm查看本地源码文件个人修改的历史记录快捷键Alt+Shift+H、Ctrl+Shift+H(通常用于调试bug,发现文件出问题需要回溯 is a project mainly written in , based on the .Alt+Shift+H 查看整个代码文件的修改历史记录 Ctrl+Shift+H 只查看被选中代码内容的修改历史记录(更具针对性)...
求未知数X最临近的能被某个数字N整除的数 is a project mainly written in , based on the .求未知数X最近的能被N整除的数:比X大的临近数:Math.ceil(X/N)*N 比X小的临近数:Math.floor(X/N)*N----------------------------------------举例: 求88最近的能被7整除的数:比88大的临近数:Math.ceil(88/7)*7 = 91 比88小的临近数:Mat...
JS实现每隔几个字符添加字符(串):实现每间隔10个字就换行一次,多用于echarts横坐标的显示文本拥挤换行;实现间隔8个� is a project mainly written in , based on the .//最直接一行代码搞定---------------------------------------- '实现每间隔10个字就换行一次,多用于echarts横坐标的显示文本'.replace(/(.{10})/g,'$1 ')//灵活的方法实现任意字符插入---------------------------------------...
解决全网90%以上的日期格式转换、日期序列等骚操作问题 is a project mainly written in , based on the .function getYearMonthList(startDate, endDate) {//返回月份的数组 如 ['2021/07','2021/08']var arr = [];var s = new Date(startDate).toLocaleString("zh-Hans-CN", {year: "numeric",...
【全网最精简写法】ES6获取浏览器url跟参 is a project mainly written in , based on the .//ES6获取浏览器url跟参 public getUrlParam = a => (a = location.search.substr(1).match(new RegExp(`(^|&)${a}=([^&]*)(&|$)`)),a?a[2]:null);...
1分钟入门angular动画效果animations,敲简单滴哟~~☺ is a project mainly written in , based on the . 运行代码创建component ng g c animate-test 然后在app.module.ts做如下引入 分别是下面两行,自行引入 import {BrowserAnimationsModule} from '@angular/platform-browser/animations';//注意这个很重要...
如何优雅地保留两位有效数字,又规避末尾出现多余的“0”? is a project mainly written in , based on the .console.log(parseFloat(parseFloat("3.1415926").toFixed(2)));//3.14 console.log(parseFloat(parseFloat("3.1000001").toFixed(2)));//3.1...
设置VSCode用Ctrl+鼠标滚轮上下滑动调整编辑器代码字体大小,设置Ctrl+0恢复默认字体大小 is a project mainly written in , based on the .Ctrl+, 搜索MouseWheelZoom然后打钩 Ctrk+K Ctrl+S ...