随笔
bcly00
这个作者很懒,什么都没留下…
展开
-
nz-zorro 主题切换 动态
主题切换当使用 @angular/cli 的方式配置主题时必须为每个主题单独打包应用,当你想切换主题而不重新加载应用时(就像这个网站),你可以使用下面的方法将主题编译到单独的样式文件,并在运行时切换:注意:确保与主题变量相关的样式存在全局样式中,而不是组件样式中,因为组件样式优先级更高将会导致样式无法被覆盖。1、安装依赖 用于将暗黑模式的less转为css文件,便于动态切换npm i less -D less-plugin-clean-css -D2、编写生成可切换为暗黑模式的css文原创 2020-12-01 15:03:13 · 1148 阅读 · 0 评论 -
来自国外的诈骗邮件
早晨,收到一封邮件,放到了网易的垃圾邮箱中Hello,That email contains EXTREMELY IMPORTANT information about your future life! Please read this carefully.This is Jeanson Ancheta. Also known as Anc-h-EtA on the dark we...原创 2019-11-25 11:39:53 · 2272 阅读 · 0 评论 -
angular7 如何获取地理信息
location: any; setPosition = (position) => { this.location = position.coords; console.log(position.coords); } ngOnInit() { if (navigator.geolocation) { navigator.geolocat...原创 2019-11-25 11:24:27 · 484 阅读 · 0 评论