ACE provides lots of wrapper classes to hide the difference between OS. ACE_Process is one of them to give us an unified operation interface to fork/kill/wait a process. And ACE_Process is also a good example code to show useful function, such as how to check whether a process is alive.继续阅读 »
调试 JavaScript 也许是一场噩梦:一些错误非常难理解,并且给出的错误行号并不是总是很有帮助。如果有一个列表,列举这些错误的意思和如何修复它们,将对我们非常有帮助。
本文列举了 JavaScript 中一些奇怪的错误。对于相同的错误不同的浏览器可能给出不同的提示,所以分别给出了不同的例子。
more
如何阅读错误
进入正题之前,我们先快速分析一下错误消息的结构,这对我们理解错误消息非常有用,同时也将有助于你理解那些没有在本文中列举的错误。
Chrome 中一个典型的错误看起来像这样:
Uncaught TypeError: undefined is not a function
该错误的结构如下:
*Uncau继续阅读 »
Sick of news website crowded with fake contents? Want to read New York Times but hate its crappy search function? Try our New York Times news search engine! We provide you with latest news, section recommendation, hot topics and coolest auto-completion!继续阅读 »