JavaScript中forEach无法遍历空位
说一个小坑吧。
之前在看《JavaScript高级程序设计》的时候,看到这样一句话:“它只是对数组中的每一项运行传入的函数,这个方法没有返回值,本质上与使用for循环迭代数组一样。”(P97)
继续阅读说一个小坑吧。
之前在看《JavaScript高级程序设计》的时候,看到这样一句话:“它只是对数组中的每一项运行传入的函数,这个方法没有返回值,本质上与使用for循环迭代数组一样。”(P97)
继续阅读There are many methods to install on Ubuntu, such as NVM
, n
, PPA
, complie
, But if just want to install specific version, it would be easily. Just do as follow.
For some reason, I tried to use CSS3 selector :first-child
, but it not works in my project.
Maybe it’s a big bug that I had experienced recently, when I use JavaScript method Date.parse('2016-10-24 18:36')
, two different outputs in Android and IOS. In Android it output the right timestamp which i need, but in IOS, it can not get the timestamp.
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.
继续阅读