2020年1月16日
摘要: 问题一:在公众号中,使用new Date(“2020-01-16 15:20”).getTime()时,在电脑调试和安卓手机上正常,但是在ios手机上不好用 查找后发现,在ios上该方法获取的时间戳显示为NAN 解决方法:将时间中的-改为/ new Date(“2020/01/16 15:20”). 阅读全文
posted @ 2020-01-16 15:27 奇迹般若果 阅读(213) 评论(0) 推荐(0) 编辑
  2019年12月24日
摘要: 1、一个 const headers = new Headers({ 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'Accept': '*!/' }); const params = 'username='  阅读全文
posted @ 2019-12-24 10:46 奇迹般若果 阅读(6135) 评论(1) 推荐(0) 编辑
  2019年12月23日
摘要: 原图: 1)filter: grayscale(100%) // 灰度100% 2)filter: blur(5px) // 模糊5px 3)filter: brightness(300%) // 3倍亮度 4)filter: contrast(200%) // 200%对比度 5)filter:  阅读全文
posted @ 2019-12-23 14:42 奇迹般若果 阅读(1468) 评论(0) 推荐(0) 编辑
  2019年12月5日
摘要: 1、在actions文件夹下创建action文件appName.action.ts import { Action } from "@ngrx/store"; export const types = { UPDATE_APPNAME: "UPDATE_APPNAME" } export class 阅读全文
posted @ 2019-12-05 16:07 奇迹般若果 阅读(1447) 评论(0) 推荐(0) 编辑
  2019年11月7日
摘要: angular直接使用iframe时动态绑定src会报错。 angular在这方面做了关于防止xss攻击的安全机制,这种做法是不符合要求的。(官方文档:https://angular.cn/guide/security) 解决方法: 新建管道safe-pipe safe-pipe.pipe.ts i 阅读全文
posted @ 2019-11-07 14:46 奇迹般若果 阅读(646) 评论(0) 推荐(0) 编辑
  2019年9月24日
摘要: 1、安装ng2-pdf-viewer与pdfjs-dist npm install ng2-pdf-viewer --save npm install pdfjs-dist --save 2、哪个模块用到将包引入哪个模块 import { PdfViewerModule } from 'ng2-pd 阅读全文
posted @ 2019-09-24 17:34 奇迹般若果 阅读(6999) 评论(0) 推荐(0) 编辑
  2019年8月5日
摘要: 1、命令:npm install --save html2canvas 2、在angular.json中引入 3、在typings.d.ts中定义下 4、html代码 <div id="capture">页面内容(要保存部分id为capture)</div> <a #downLoadImg clas 阅读全文
posted @ 2019-08-05 16:13 奇迹般若果 阅读(790) 评论(0) 推荐(0) 编辑
  2019年7月19日
摘要: 1、创建SSH Key 在windows下查看【C:\Users\Administrator】下是否有.ssh文件夹(里面有、文件),若没有,就打开git bash,输入 ssh-keygen -t rsa -C "my-email.com" 其中,passphrase为密码,可输可不输(不输为空) 阅读全文
posted @ 2019-07-19 10:37 奇迹般若果 阅读(1265) 评论(0) 推荐(0) 编辑
摘要: 1、将new Date() 出的时间(Mon Feb 18 2019 14:10:59 GMT+0800 (中国标准时间))改为YYYY-MM-DD格式 //获取时间,格式YYYY-MM-DDgetNowFormatDate(dateInfo) { let date = dateInfo; let 阅读全文
posted @ 2019-07-19 09:36 奇迹般若果 阅读(566) 评论(0) 推荐(0) 编辑
  2019年7月18日
摘要: 1、框架 angular 官网:https://angular.io/(英) https://www.angular.cn/(中) ngzorro:https://ng.ant.design vue 官网:https://cn.vuejs.org/ vuex:https://vuex.vuejs.o 阅读全文
posted @ 2019-07-18 15:51 奇迹般若果 阅读(376) 评论(1) 推荐(0) 编辑