会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
奇迹般若果
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
下一页
2020年1月16日
iso与安卓遇到的问题
摘要: 问题一:在公众号中,使用new Date(“2020-01-16 15:20”).getTime()时,在电脑调试和安卓手机上正常,但是在ios手机上不好用 查找后发现,在ios上该方法获取的时间戳显示为NAN 解决方法:将时间中的-改为/ new Date(“2020/01/16 15:20”).
阅读全文
posted @ 2020-01-16 15:27 奇迹般若果
阅读(223)
评论(0)
推荐(0)
2019年12月24日
angular http请求头部信息设置
摘要: 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 奇迹般若果
阅读(6282)
评论(1)
推荐(0)
2019年12月23日
css的filter属性
摘要: 原图: 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 奇迹般若果
阅读(1491)
评论(0)
推荐(0)
2019年12月5日
angular使用ngrx做状态管理
摘要: 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 奇迹般若果
阅读(1455)
评论(0)
推荐(0)
2019年11月7日
angular引用iframe报错解决方法
摘要: angular直接使用iframe时动态绑定src会报错。 angular在这方面做了关于防止xss攻击的安全机制,这种做法是不符合要求的。(官方文档:https://angular.cn/guide/security) 解决方法: 新建管道safe-pipe safe-pipe.pipe.ts i
阅读全文
posted @ 2019-11-07 14:46 奇迹般若果
阅读(674)
评论(0)
推荐(0)
2019年9月24日
angular中实现pdf在线预览功能
摘要: 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 奇迹般若果
阅读(7172)
评论(0)
推荐(0)
2019年8月5日
html2canvas下载图片保存到本地(angular为例)
摘要: 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 奇迹般若果
阅读(829)
评论(0)
推荐(0)
2019年7月19日
gitHub添加公钥
摘要: 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 奇迹般若果
阅读(1282)
评论(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 奇迹般若果
阅读(581)
评论(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 奇迹般若果
阅读(469)
评论(1)
推荐(0)
上一页
1
2
3
4
5
下一页
公告