摘要: with session storage: 1.ajax请求可以放在 $(document).ready(function (){...}); 里。 2. 不同页面之间可以get到session storage。 阅读全文
posted @ 2017-07-12 17:55 Ariel_HKUST 阅读(135) 评论(0) 推荐(0)
摘要: 1。 npm init。 创建package.json 文件 2。npm install 安装packagejson中的依赖module 3。npm ls -g --depth=1 2>/dev/null/ | grep generator list global node modules, wit 阅读全文
posted @ 2017-07-11 14:25 Ariel_HKUST 阅读(161) 评论(0) 推荐(0)
摘要: 在研究react和webpack的时候,经常看到在js文件中出现require,还有import,这两个都是为了JS模块化编程使用。CSS的是@import 1.ES6 模块的设计思想,是尽量的静态化,使得编译时就能确定模块的依赖关系,以及输入和输出的变量。 Require是CommonJS的语法, 阅读全文
posted @ 2017-07-07 11:12 Ariel_HKUST 阅读(52566) 评论(0) 推荐(1)
摘要: 1.Concepts: webpack is a module bundler for modern JS applications. Since there are lots of complex JS code and dependencies of files. 2. Entry:webpac 阅读全文
posted @ 2017-07-06 16:20 Ariel_HKUST 阅读(365) 评论(0) 推荐(0)
摘要: 1. 计算机网络TCP的三次握手和四次挥手,画图并解释。 为什么不用4次挥手?为什么time_wait 状态需要等两倍的socket生存时间(MSL)才会关闭请求? 因为在握手阶段,服务器收到客户端的SYN时,SYNACK 可以和 服务器端的SYN(起同步作用)还有server_token一起发送给 阅读全文
posted @ 2017-06-25 16:12 Ariel_HKUST 阅读(169) 评论(0) 推荐(0)
摘要: Google大神:http://www.cnblogs.com/figure9/archive/2013/01/09/2853649.html 全面前端:http://m.blog.csdn.net/i10630226/article/details/52012518 腾讯笔试:http://www 阅读全文
posted @ 2017-06-22 08:54 Ariel_HKUST 阅读(144) 评论(0) 推荐(0)
摘要: A red-black tree is a Binary Search Tree that satisfy the red-black tree properties: 1. Every node is colored red or black; 2. If a node is red, eithe 阅读全文
posted @ 2017-05-24 12:54 Ariel_HKUST 阅读(165) 评论(0) 推荐(0)
摘要: 1.聊背景。。 2.聊项目。。然饿我的项目是webvr。。基本面试官很少会了解这个。。应该再多做实习多做些项目。。 3.浏览器输入网址后到页面呈现出来的过程 4.缓存机制, 浏览器如何判断一个图片有没有被缓存。(第一次请求的时候, 会把response的头部和资源一起缓存。 再请求的时候,会在缓存里 阅读全文
posted @ 2017-05-22 11:10 Ariel_HKUST 阅读(180) 评论(0) 推荐(0)
摘要: 多次提交代码,与合并的工作量成反比。 in terminal window git status:查看git的状态 git add -A: 把所有不再track里的文件加入进去/ git add -u: update all your changes git commit -m "some comm 阅读全文
posted @ 2017-05-10 11:03 Ariel_HKUST 阅读(131) 评论(0) 推荐(0)
摘要: 1.在Github新建仓库,本地使用 git clone 项目url 克隆到本地。 2.进入clone的文件夹,yo react-webpack projName 选择各种选项 // components文件夹中存放的是react components 相关的代码。 Main.js是主入口文件 Co 阅读全文
posted @ 2017-05-09 17:26 Ariel_HKUST 阅读(139) 评论(0) 推荐(0)