摘要: 一、创建github pages 个人主页 1.在github上创建username.github.io项目,其中用户名即为github用户名 2.增加项目首页 完成后便可以访问 http://username.github.io 二、使用jekyll 1.安装ruby 下载地址:http://ru 阅读全文
posted @ 2016-09-21 15:31 翻页工 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 在github上设置项目首页有三种方式 1.新建分支gh-pages 完成后即可访问 http://<github username>.github.io/<github project name>/ 特点: 单独建立一个分支与项目本身分离,对于非网站类项目非常合适,避免与源码之间的耦合 githu 阅读全文
posted @ 2016-09-20 11:32 翻页工 阅读(4076) 评论(0) 推荐(0) 编辑
摘要: 参考链接: https://ruby-china.org/topics/23561 http://stackoverflow.com/questions/5533050/gitignore-exclude-folder-but-include-specific-subfolder# 一.后置线 st 阅读全文
posted @ 2016-08-22 10:20 翻页工 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1.安装XPMode WindowsXPMode_zh-cn.exe 地址:https://www.microsoft.com/zh-cn/download/details.aspx?id=8002 2.安装virtual pc Windows6.1-KB958559-x64-RefreshPkg. 阅读全文
posted @ 2016-07-19 12:00 翻页工 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 持续更新中 一、定义:以下均使用括号中的简称 工作区:workspace (W) 暂存区:index (I) 本地仓库:local repository (L) 远程仓库:remote repository (R) 二、常用命令: 1.初始化 git init 2.常用配置信息 (如果不使用--gl 阅读全文
posted @ 2016-05-25 12:15 翻页工 阅读(1407) 评论(0) 推荐(1) 编辑
摘要: 翻译:http://requirejs.org/docs/node.html 1.为什么要在node环境下用requirejs,node本身就有模块加载器 node下使用的CommonJS模块规范,CommonJS对于浏览器不友好。在server端使用requirejs,可以使server和brow 阅读全文
posted @ 2016-05-25 11:34 翻页工 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 1.配置tab操作为4个空格 File->Settings->Editor->Code Style->JavaScript->Tabs and Indents 默认为4个空格,不要选中"Use tab character" 2.配置每行最长80个字符 File->Settings->Editor-> 阅读全文
posted @ 2016-04-27 17:02 翻页工 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 1.查看npm包列表 npm ls (-g) -depth 0 2.调试自己的npm包 npm install -g node-inspector node-debug xxx.js eg:调试gulp任务default node-debug .\node_modules\gulp\bin\gulp 阅读全文
posted @ 2016-04-26 10:55 翻页工 阅读(701) 评论(0) 推荐(0) 编辑
摘要: 1.方法一:从服务器加载(ajax) 结论:需特别注意XSS漏洞 2.方法二:简单客户端模版 (1)在HTML注释中包含模版,注释是和元素及文本一样的DOM节点 结论:非常不推荐,因为注释必须挨着<ul id="mylist">,如果有空格或者回车,firstChild就不是该li注释了。 (2)使 阅读全文
posted @ 2016-04-01 11:24 翻页工 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 参考链接:http://www.ibm.com/developerworks/cn/web/wa-jsmemory/ 1.闭包 如果闭包里有setInterval或者其它的方法引用了闭包内部的变量,那闭包所在对象不会被释放。 2.控制台日志 console.log在控制台的时候,对象不会被释放。(即 阅读全文
posted @ 2016-03-23 11:25 翻页工 阅读(146) 评论(0) 推荐(0) 编辑