Creeper

Results 222 comments of Creeper
trafficstars

对的,JWT 本身的内容只是 base64 编码了,跟明文几乎没差别。 所以文章最后说了 JWT 并没有提高安全性,还是需要配合 HTTPS 等一起使用。

## API 探索 **Redux API** --- ### 1. `createStore(reducer, [preloadedState], enhancer)` 创建一个 Redux store 来以存放应用中所有的 state。详情可见 [Redux API](http://redux.js.org/docs/api/createStore.html),这里主要强调两点: 1. `preloadedState`:初始时的 state。在同构中会用到,比如从一个session恢复数据。 当 store 创建后,Redux 会 dispatch action(`{ type: ActionTypes.INIT })`)...

## generator(生成器) 生成器是ES6最具魔力的特性。为什么这么说?对初学者来说,它与JS已有的特性截然不同,可能第一眼会觉得晦涩难懂。但是,从某种意义上来说,它使语言内部的常规行为变得更加强大。如果这都不是魔力,我不知道还有什么是。 注意:生成器可以简化代码,解决回调地狱。 ### 生成器简介 什么是生成器?从一个示例开始: ``` js function* quips(name) { yield "hello " + name + "!"; yield "i hope you are enjoying the blog posts"; if (name.startsWith("X"))...

@skyujilong generator也是iterator,你可以用`for of`代替`forEach`。具体可以看开头部分。

@skyujilong 对数组来讲,请用`yield * array`。 比如: ```js function* test() { yield* [1,2,3].map(v => { return v; }); } var gen = test(); console.log(gen.next()); console.log(gen.next()); console.log(gen.next()); console.log(gen.next()); /* { value: 1, done:...

@maoziliang 👍 > NOTE: Instance methods such as "foobar".includes("foo") will not work since that would require modification of existing builtins (Use babel-polyfill for that). *案例五:babel-runtime 和 babel-polyfill* 建议可以点一下。

Trying to use cli too. Related article: 1. 2.

@shri3k No, the `header` here is just raw cookie string. The express cookie middleware will parse the entire cookie string and generate the *all cookie object*. Can we do this...

1. full-icu 是用于 node 端的,node13 开始已不需要; 2. 微信小程序依赖微信提供的webview 环境,如果不支持的话就没有办法。