2018年3月27日
摘要: 找出数组a(操作后数组)与数组b(原始的数组)新增的元素? let temp=[]; for(var i=0;i<a.length;i++){ for(var j=0;j<b.length;j++){ if( a[i].id = b[j].id ){ break; } if ( j== b.leng 阅读全文
posted @ 2018-03-27 16:44 陌生街中吹起褪色故梦 阅读(97) 评论(0) 推荐(0) 编辑
  2018年3月9日
摘要: home.module.ts 阅读全文
posted @ 2018-03-09 12:38 陌生街中吹起褪色故梦 阅读(361) 评论(0) 推荐(0) 编辑
  2017年11月8日
摘要: 查看、添加、提交、删除、找回,重置修改文件 git help <command> # 显示command的help git show # 显示某次提交的内容 git show $id git co -- <file> # 抛弃工作区修改 git co . # 抛弃工作区修改 git add <fil 阅读全文
posted @ 2017-11-08 18:52 陌生街中吹起褪色故梦 阅读(135) 评论(0) 推荐(0) 编辑
  2017年10月31日
摘要: 1.Calendar 转化 String //获取当前时间的具体情况,如年,月,日,week,date,分,秒等 Calendar calendat = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy 阅读全文
posted @ 2017-10-31 10:35 陌生街中吹起褪色故梦 阅读(124) 评论(0) 推荐(0) 编辑
摘要: package util; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; /*** * 日期工具类 * * @ 阅读全文
posted @ 2017-10-31 10:24 陌生街中吹起褪色故梦 阅读(450) 评论(0) 推荐(0) 编辑
  2017年10月20日
摘要: 测试地址: https://www.w3cschool.cn/tools/index?name=reg 实例: 一、校验数字的表达式 数字:^[0-9]*$n位的数字:^\d{n}$至少n位的数字:^\d{n,}$m-n位的数字:^\d{m,n}$零和非零开头的数字:^(0|[1-9][0-9]*) 阅读全文
posted @ 2017-10-20 20:25 陌生街中吹起褪色故梦 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 输入框输入过程触发Select()方法。 <input type="text" name="code" [(ngModel)]="code" (keyup)="Select()"> 输入框输入完触发Select()方法。 <input type="text" name="code" [(ngMode 阅读全文
posted @ 2017-10-20 20:21 陌生街中吹起褪色故梦 阅读(400) 评论(0) 推荐(0) 编辑
  2017年10月15日
摘要: 一:组件日期格式化: ts中调用: import {DatePipe} from "@angular/common"; @Component({ providers: [DatePipe], }) export class CustomerManageComponent { constructor( 阅读全文
posted @ 2017-10-15 21:56 陌生街中吹起褪色故梦 阅读(3626) 评论(0) 推荐(0) 编辑
摘要: 1.下载地址:http://maven.apache.org/download.cgi(Windows平台下载*.zip压缩包,Linux平台下载*.gz压缩包) 2.解压到E:\JAVA\Maven,解压缩后文档结构如下: --bin:保存Maven的可执行命令,mvn和mvn.bat就是执行Ma 阅读全文
posted @ 2017-10-15 21:09 陌生街中吹起褪色故梦 阅读(9518) 评论(0) 推荐(0) 编辑
摘要: 1.如果你之前安装失败过,最好在安装angular-cli之前先卸载干净,用以下两句: npm uninstall -g angular-cli npm cache clean npm uninstall -g angular-cli npm cache clean 2.设置淘宝镜像,国内访问国外网 阅读全文
posted @ 2017-10-15 19:49 陌生街中吹起褪色故梦 阅读(644) 评论(0) 推荐(0) 编辑