会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
白马非马
我想超越这平凡的生活
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
21
下一页
2017年6月14日
bytetosize 和 sizetobyte
摘要: other > bytefunction covertSizeToByte(size) { // sizes = ['B','KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; let temp = size; if (size.endsWith('KB'
阅读全文
posted @ 2017-06-14 12:36 _白马非马
阅读(745)
评论(0)
推荐(0)
2017年6月13日
web复制粘贴-关于常见的document.execCommand(xxxx)问题
摘要: 关于用web 实现 复制粘贴 等 自定义右键菜单功能 ,网上大部分文章都是用document.execCommand(xxxx) 来实现, 然鹅, document.execCommand(xxxx) 是ie独家提供的,所以像ff,chrome等游览器是没办法用的,(当然 有的一些命令chrome
阅读全文
posted @ 2017-06-13 20:20 _白马非马
阅读(7171)
评论(0)
推荐(0)
2017年6月12日
rimraf --A deep deletion module for node (like `rm -rf`)
摘要: cnpm install rimraf -g package.json 可以像下面这样配置, 这样 每次build时候 都会把原来build好的 全部删除 重新编译 { "name": "webpack-ensure", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "...
阅读全文
posted @ 2017-06-12 11:52 _白马非马
阅读(547)
评论(0)
推荐(0)
2017年6月6日
html js 执行粘贴无效和 判断选中的内容(纯文本和html)是否为空
摘要: 参考内容:http://www.cnblogs.com/ArthurPatten/p/3317263.html
阅读全文
posted @ 2017-06-06 18:18 _白马非马
阅读(1354)
评论(0)
推荐(0)
2017年5月29日
Javascript中document.execCommand()的用法
摘要: http://blog.csdn.net/woshinia/article/details/18664903 document.execCommand()方法处理Html数据时常用语法格式如下:document.execCommand(sCommand[,交互方式, 动态参数])其中:sComman
阅读全文
posted @ 2017-05-29 11:20 _白马非马
阅读(376)
评论(0)
推荐(0)
2017年5月12日
bootstrap4 按钮默认有个动画效果
摘要: 预览地址 :http://sandbox.runjs.cn/show/lhga1inc? 发现bootstrap4 按钮默认有个动画效果,所以研究了一下!!!
阅读全文
posted @ 2017-05-12 18:15 _白马非马
阅读(1554)
评论(0)
推荐(0)
2017年5月11日
vue 源码初级学习
摘要: // 从Vue的第二个commit来学习数据驱动视图 本文地址:https://zhuanlan.zhihu.com/p/26744423 精品文章 vue学习笔记:http://jiongks.name/blog/vue-code-review/
阅读全文
posted @ 2017-05-11 15:22 _白马非马
阅读(834)
评论(0)
推荐(0)
2017年5月9日
局域网 两台电脑共享 密码关闭
摘要:
阅读全文
posted @ 2017-05-09 20:20 _白马非马
阅读(248)
评论(0)
推荐(0)
gitextention 常用技巧
摘要: 在这里讲解 gitextention +beyondcompare 配合使用常用方法 1常用提交方式有两种 2 图例指南 1 常见先提交后拉取 实例 2 线拉取 后提交 表现为,从别人的提交树上 单独出来一个枝干, 3 工具栏 4 提交示意图
阅读全文
posted @ 2017-05-09 18:43 _白马非马
阅读(464)
评论(0)
推荐(0)
状态模式全解析--JavaScript
摘要: 1 初级电灯例子 , 状态仅仅用字符串表示,没有封装到对象 // 状态模式 面向对象版本 实现的关键 1 状态用对象表示 2 状态对应的行为 抽象成一个统一的方法(buttonWasPressed),可以实现委托。这个行为可以放到状态类里,也可以放到context里, 3 状态内部 会自己修改当前的
阅读全文
posted @ 2017-05-09 12:21 _白马非马
阅读(439)
评论(0)
推荐(2)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
21
下一页
公告