上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: 1.Array.from 可以拷贝数组,也可以通过扩展运算符来拷贝数组,他们的作用对等,例如: let arr = [1,2,3,4] let arr2 = Array.from(arr) let arr3 = arr; //arr2 is: [ 1, 2, 3, 4 ] console.log(' 阅读全文
posted @ 2017-10-17 14:23 anthonyliu 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 1.新增数据类型 Symbol 参考链接:https://www.cnblogs.com/diligenceday/p/5462733.html(基本类型) 2.proxy 用来拦截在一个对象上的指定操作,如: 也可以应用在多继承: 3.reflect 博客:http://www.cnblogs.c 阅读全文
posted @ 2017-10-03 12:38 anthonyliu 阅读(787) 评论(0) 推荐(0) 编辑
摘要: 基础知识: 消息摘要(Message Digest) 1. sha1算法 cookie-parse中对cookie值进行摘要,如: 可以参考博客:http://blog.csdn.net/liangklfang/article/details/51072424 2.非对称加密概念(RSA) 有两个k 阅读全文
posted @ 2017-10-03 11:25 anthonyliu 阅读(218) 评论(0) 推荐(0) 编辑
摘要: MySQLStore.prototype.createDatabaseTable = function(cb) { debug_log('Creating sessions database table'); var fs = require('fs'); /**读取当前目录下上级目录中的schema.sql中sql语句*/ /** CREA... 阅读全文
posted @ 2017-09-26 21:17 anthonyliu 阅读(3999) 评论(0) 推荐(0) 编辑
摘要: 1.ssh 登录远程机器可以不需要用户名和密码则需要用到秘钥pri和pub,pri不需要有后缀。用secureCRT来登录远程机, 点击“Skip”,如果设置了.pub即可登录,否则即可选择公钥,输入commentphrase密码即可登录。 当使用git的时候,需要用ssh协议连接主机,在远程需要公 阅读全文
posted @ 2017-08-31 15:06 anthonyliu 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1.bin字段 可选字段,很多包都会有执行文件需要安装到PATH中去。这个字段对应的是个map数据结构,每个元素对应一个{ 命令名:文件名 }。例如: { "bin" : { "hello" : "./cli.js" } }, 就可以在命令行模式下执行cli.js脚本了。 npm hello 更高级 阅读全文
posted @ 2017-08-22 17:07 anthonyliu 阅读(2582) 评论(0) 推荐(0) 编辑
摘要: 1.lodash http://lodashjs.com/docs/ 基础工具包 2.merge-descriptors mixin的设计模式。 3.escapeHtml 转义字符串 var escapeHtml = require('escape-html') console.log(escape 阅读全文
posted @ 2017-08-01 17:17 anthonyliu 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 1.rimraf https://www.npmjs.com/package/rimraf linux命令行:rm -rf 2.写shell脚本和命令行的开发,可以参考博客: http://www.ruanyifeng.com/blog/2015/05/command-line-with-node. 阅读全文
posted @ 2017-08-01 17:10 anthonyliu 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1.读取xlsx 文件依赖包:multiparty,XLSX,代码如下: var multiparty = require('multiparty'); var XLSX = require("xlsx"); var form = new multiparty.Form(); function to 阅读全文
posted @ 2017-08-01 10:14 anthonyliu 阅读(2606) 评论(0) 推荐(0) 编辑
摘要: 1.API中的数据(data、prop、propData、method、watch)五个初始化入口是在initState模块中: export function initState (vm: Component) { vm._watchers = [] const opts = vm.$option 阅读全文
posted @ 2017-07-27 18:04 anthonyliu 阅读(444) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页