会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
面包_girl
记录各种小技能,知识点:https://huangmin1992.github.io/myBlog
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
11
下一页
2020年6月10日
js-开启一个新窗口
摘要: /** * @param { string } url * @param { string } windowName * @param { number } width * @param { number } height */ export function openWindow(url, win
阅读全文
posted @ 2020-06-10 15:37 面包_girl
阅读(330)
评论(0)
推荐(0)
2020年6月8日
electron-开机自启动,启用操作系统气泡提示,有任务时,阻止电脑休眠
摘要: // 开机自启动 const exeName = path.basename(process.execPath); ipcMain.on('boot-start', (event, args) => { if (!app.isPackaged) { app.setLoginItemSettings(
阅读全文
posted @ 2020-06-08 09:30 面包_girl
阅读(1737)
评论(0)
推荐(0)
css-linear-gradient自定义虚线
摘要: { height: 1px; background: linear-gradient(to right, #e0e0e0, #e0e0e0 10px, transparent 10px, transparent); background-size: 21px 100%; }
阅读全文
posted @ 2020-06-08 09:23 面包_girl
阅读(550)
评论(0)
推荐(0)
2020年3月24日
js-drag 拖拽封装
摘要: ; (function () { // 调用私有方法,获取transform var transform = getTransform(); function Drag(selector) { this.elem = typeof selector 'object' ? selector : doc
阅读全文
posted @ 2020-03-24 10:49 面包_girl
阅读(420)
评论(0)
推荐(0)
2020年3月20日
window.location.origin 兼容IE
摘要: Ie浏览器下,有时候获取到的window.location.origin为undefined,需要兼容 let origin: any; if (!window.location.origin) { origin = window.location.protocol + '//' + window.
阅读全文
posted @ 2020-03-20 10:49 面包_girl
阅读(1208)
评论(0)
推荐(0)
2020年3月13日
css-outline 实现 加号样式
摘要: <div></div> //css div{ width:50px; height:50px; outline:20px solid; outline-offset:-42px } 效果
阅读全文
posted @ 2020-03-13 16:52 面包_girl
阅读(283)
评论(0)
推荐(0)
2020年3月9日
js-点击复制文件到剪贴板
摘要: // 复制链接 copyLinkHandler() { const input = document.querySelector('#private-link-code'); input.value = this.copyLinkTxt; // 选中赋值过的input input.select();
阅读全文
posted @ 2020-03-09 15:08 面包_girl
阅读(562)
评论(0)
推荐(0)
angular 引入复制插件 ngx-clipboard
摘要: 1.安装命令 npm install ngx-clipboard 2.在当前所需组件的module中引入ClipboardModule; 3.在组件中使用
阅读全文
posted @ 2020-03-09 10:30 面包_girl
阅读(1249)
评论(0)
推荐(0)
2020年3月3日
angular->管道pipe 格式化文件大小
摘要: 1.新建filesize管道 import {Pipe, PipeTransform} from '@angular/core'; @Pipe({ name: 'fileSizeFormat' }) export class FileSizeFormatPipe implements PipeTra
阅读全文
posted @ 2020-03-03 10:51 面包_girl
阅读(353)
评论(0)
推荐(0)
angular->html文本显示
摘要: 1.新建pipe 文件 import {Pipe, PipeTransform} from '@angular/core'; import {DomSanitizer} from '@angular/platform-browser'; @Pipe({ name: 'htmlReset' }) ex
阅读全文
posted @ 2020-03-03 10:48 面包_girl
阅读(743)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
11
下一页
公告
/* 鼠标点击文字特效 */