2019年1月9日
摘要: switchChainNode(fromNode, targetNode) { let attrFromNode = { index: fromNode.index, prev: fromNode.prev, next: fromNode.next }; let attrTargetNode = { 阅读全文
posted @ 2019-01-09 17:13 雨弓 阅读(1285) 评论(0) 推荐(0) 编辑
  2017年3月8日
摘要: node做http client 发送post数据是很容易的事情,但要上传文件就不是太容易了主要是因为上传文件的报文和普通post是不太一样的 要了解http post可以看下这个 https://imququ.com/post/four-ways-to-post-data-in-http.html 阅读全文
posted @ 2017-03-08 17:16 雨弓 阅读(482) 评论(0) 推荐(0) 编辑
  2017年2月7日
摘要: 报错:ImportError: /root/.local/share/letsencrypt/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so: undefined symbol: OPENSSL_sk_num 阅读全文
posted @ 2017-02-07 18:07 雨弓 阅读(2194) 评论(0) 推荐(0) 编辑
  2016年11月9日
摘要: 1 import React, { Component } from 'react' 2 import PubSub from 'pubsub' 3 import GlobalVars from 'globalVars' 4 import styles from './main.css' 5 6 // globalVars.runMode 7 class Text ... 阅读全文
posted @ 2016-11-09 17:24 雨弓 阅读(409) 评论(0) 推荐(0) 编辑
  2016年8月16日
摘要: 根据设计图设定每屏的高度,js会自动缩放到全屏尺寸,效果要大尺寸才能看的出来 demo :http://runjs.cn/detail/uvizsekd 阅读全文
posted @ 2016-08-16 09:30 雨弓 阅读(909) 评论(0) 推荐(0) 编辑
  2016年6月20日
摘要: var html_line = html.replace(/[\r\t\n]+/g, "\n").split(/\n/) var tpl = `var _h = []` var _begin = '<?' , _end = '?>' ,_is = true html_line.forEach(fun 阅读全文
posted @ 2016-06-20 23:33 雨弓 阅读(847) 评论(0) 推荐(0) 编辑
  2016年1月11日
摘要: 设计出图后经常需要改下尺寸放在别的项目上使用,每次都是设计手工处理,其实图片服务可以做更多事情,比如借助强大的im,可以通过url控制图片尺寸 1 var childProcess = require('child_process') 2 var path = require('path') ... 阅读全文
posted @ 2016-01-11 13:50 雨弓 阅读(1066) 评论(0) 推荐(0) 编辑
  2015年2月5日
摘要: webrtc网上封装的很多,demo很多都是一个页面里实现的,今天实现了个完整的 , A 发视频给 BA webrtc.html作为offer ... 阅读全文
posted @ 2015-02-05 13:16 雨弓 阅读(9387) 评论(7) 推荐(1) 编辑
  2015年1月16日
摘要: exports.run = function(fn ){ return function(onDone){ function thunk(tfn , ctx){ return function(sql , id){ var ar... 阅读全文
posted @ 2015-01-16 14:54 雨弓 阅读(282) 评论(0) 推荐(0) 编辑
  2015年1月4日
摘要: 做 IM 屏幕截图是少不了的,之前 windows 版本是调用的 qq 输入法的截图功能,这个版本又再次尝试自己实现发现是可以的,getusermedia 的权限很高,代码如下 可以把屏幕全部捕获,别说截图 录屏都可以PS 高版本的 nw ,package.json 需要 "chromium-arg 阅读全文
posted @ 2015-01-04 11:31 雨弓 阅读(3524) 评论(1) 推荐(0) 编辑