1. vmware shanghai 2017-3-8 Jack (Ke Zhang)
- cookie, localStorage, when to use, when don't want to send to server? CORS
- how to set cookie expire time? (
document.cookie = 'name=qiu; max-age=9999; path=/; domain=domain; secure';
, max-age=0 删除)
- angular directives usage
- server rendering, client rendering
- real-time chat
- array [1,2,3,4,2], find values that appears more than once
- website optimization
- cross domain, jsonp
- why use oop, what is oop, benefit (encapsulation, abstraction, inheritance, polymorphism. reuse)
- modularization, commonjs, requirejs, es2015 will make commonjs or require away? how angular module?
- angular service, factory, provider, why use service?
- css priority, red, blue, green.
- bootstrap uses important?
- some js needs to put in front, resulting loading DOM slow, how to solve? async, defer
- less, sass
- pack tools, grunt
- testing: mocha, should.js, supertest, PhantomJS
- why not global variable, use closure benefit
- h5 advantage
1.1. prepare Henry Chen interview
- distributed systems
- 接口和抽象类有何区别?
- 反射
- 单例模式吗?请实现之,并说说用在哪些情况中。
- 锁:有关锁的问题,读写锁的优化
- 多线程实现
- 写一个 Singleton 的例子