闻心阁

一蓑烟雨看苍生,半壶浊酒笑红尘

关于《尸语者》

2016-10-31 约 1 分钟读完 生活涂鸦
最近一部热播剧叫法医秦明,看了一些简介,很是眼熟。细看之,原来是我之前追的尸语者拍成电视剧了。 我是一个没有多少耐心的人,而恐怖灵异类的小说是我比较钟爱的类型,无奈看的时候没有完结,为了避免自己天天惦记,看了几章就放下了,这次看了一下原来已经更新了5部了,可以一读。使用kindle一口气读下来,荡气回肠且意犹未尽。好玩的一个细节是,在第三部中把人物和之前蜘蛛写的十宗罪串联了起来。看到这人物了乱入,有点忍俊不禁。无论十宗罪还是尸语者,从中读出的最深的4个字就是:人性本恶。 电视剧不想去看了,实在不想去看主演那个死板的面孔,但小说绝对推荐。

Inject jQuery into Any Webpage

2016-10-08 约 1 分钟读完 搬砖秘籍

Even MVVM framework is more and more popular in the web front developments, but the strength of jQuery cannot be replaceable. Sometimes, we need the jQuery’s useful APIs to achieve some complex actions, but many webpages give up jQuery, so some skills is needed to inject the jQuery into the webpages which had abandon the jQuery library.

继续阅读

ES6 Tips in Chrome (2016-08-08)

2016-08-08 约 1 分钟读完 搬砖秘籍
Nowadays ES6 is more and more popular in front end development, so I plan to learn and practice it via Chrome browser. Why is Chrome? Because it can support most of ES6 features(Nearly 97% until 2016-08-08), but I also find a few method that it can’t support. .at() method .padStart() method .padEnd() method .values() method If I find other features not support in Chrome, I would write it here again.

jQuery $.ajax Method Ignored the Undefined Values

2016-08-07 约 1 分钟读完 搬砖秘籍
Recently, I used jQuery to get the data from the server client via $.ajax method. As we known that, we should send the request with some parameters. The code as follow. $(document).ready(function(){ $.ajax({ url:'http://127.0.0.1/jq-undefined.php', data:{ para1 : 1, para2 : 2, para3 : undefined }, success:function(data){ alert(data); }, }); }); According to Chrome DevTools, I get the result: Yep, jQuery is smart, it can ignore the undefined values and avoid a lot of server errors. 继续阅读