Results 31 issues of xqin

- Support run mult server instance when without `port` arguments - 支持在没有指定 `port` 参数时,可以多次使用 `pen` 命令。 目前在没有指定 `port` 的情况下多次运行时后面会报错启动不起来,只能指定一个端口或者关闭之前启动的 `pen`。 本次改动主要解决当有多个 `Markdown` 文件需要使用 `pen` 但并不关心端口号是多少的这种需求(比如我本人就经常这么用 :P)。 测试用例已增加,代码风格与楼主保持一致。

Allow skip pre-build download, to direct compile from source. Fix some installation failures due to network problems. https://github.com/imagemin/gifsicle-bin/issues/81 https://github.com/imagemin/gifsicle-bin/issues/67 https://github.com/imagemin/gifsicle-bin/issues/11

错误信息: `Uncaught RangeError: Maximum call stack size exceeded.` 原因是: 使用location.replace会导致页面重新加载,当有hash值时,`powerSwitch`会自动触发click事件(576行),而`click`事件会触发`onSwitch`事件,所以就死循环了. ``` if (anchorSplit && element.href && anchorSplit == element.href.split("#")[1]) { $(element).trigger("click"); } ```

```javascript const { compress } = require('snappy') try { compress(this.nothing).catch((e) => { console.log('excpetion should be here:', e) }) } catch (e) { console.log('unexpect excpetion:', e) } ``` test on [email protected]

`callbacks[event]` 对象保存着各个`event` 在被 `fire` 时各 `callback`的引用, 在`fire` 之后没有将其清除掉, 导致的问题是, 当同一模块被N处调用时, `callbacks[event]` 会越来越大, 而且因为它还保存着`callback`的引用, 导致 `callback` 在执行之后, 不会被释放. 且 `on` 方法, 不管当前的状态, 只管一心的往 `callback[event]` 中扔数据, 建议的写法是: ``` // 原型上增加 eventList 用于保存...

### Is there an existing issue for this? - [X] I have searched the existing issues ### This is a CLI Docs Problem, not another kind of Docs Problem. -...

Needs Triage
Documentation

http://pij.robinqu.me/JavaScript_Core/ECMAScript/es6/es6_syntax_features.html ![image](https://cloud.githubusercontent.com/assets/1265888/9840930/cd7c0666-5acb-11e5-81dc-3921cf38829e.png) ![image](https://cloud.githubusercontent.com/assets/1265888/9840934/d6c9a8c2-5acb-11e5-9234-a494d7b114a3.png) 在介绍 [JavaScript Generator](http://pij.robinqu.me/JavaScript_Core/Functional_JavaScript/JavaScript_Generator.html) 时, 写的是正确的: ![image](https://cloud.githubusercontent.com/assets/1265888/9840943/efebeaae-5acb-11e5-970d-6fa49a70e56a.png)

``` var MingGe = {}; MingGe.isSb = 'S"B'; alert($.toJSON(MingGe)); ``` 自己拿你的代码试, 看你转出来的`JSON`串是个什么玩意.

html 文件, 保存为UTF-8编码. ``` html hello $('body').append(''); ``` 1.js 文件, 保存为GB2312编码. ``` javascript alert('测试!!!'); ``` 用 `append` 方法将 `script` 标签动态插入到页面中的时候, IE678下弹出的汉字乱码, 如下图: ![image](https://cloud.githubusercontent.com/assets/1265888/14665335/f30cf274-0704-11e6-80da-7a168de6706c.png)

3个月已经过去了, 版本号也由原来的`1.7.5`升级到`1.9.3`, 而且还号称是`完美正式版`... 居然还有这么弱智的BUG, 果然SB还是那个SB, 一点都没变. ``` var a = { MGSB: new Date() }; console.log($.toJSON(a), JSON.stringify(a)); ``` ![image](https://cloud.githubusercontent.com/assets/1265888/13876549/135e4ad4-ed40-11e5-9fab-52c42e8a4b39.png)