介绍
昨天发的《大叔手记(19):你真懂JavaScript吗?》里面的5个题目,有很多回答,发现强人还是很多的,很多人都全部答对了。
今天我们来对这5个题目详细分析一下,希望对大家有所帮助。
注:
问题来自大名鼎鼎的前端架构师Baranovskiy的帖子《So, you think you know JavaScript?》。
答案也是来自大名鼎鼎的JS牛人Nicholas C. Zakas的帖子《Answering Baranovskiy’s JavaScript quiz》——《JavaScript高级程序设计》一书的原作者
(但题目2的解释貌似有点问题)
OK,我们先看第一题
题目1
if (!("a" in window)) {… Read More
LESS 是一个流行的样式表语言,它提供了 CSS3 也未曾实现的多种功能,让您编写 CSS 更加方便,更加直观。LESS 已经被广泛使用在多种框架中 ( 例如:BootStrap)。本文将介绍 LESS 产生的背景、优势、演化与 CSS 之间的转化,及其典型的应用场景,并将其与其他样式表语言进行比较。相信前端开发工程师会喜欢 LESS,灵活运用 LESS 以提高开发效率。
LESS 背景介绍
LESS 提供了多种方式能平滑的将写好的代码转化成标准 CSS 代码,在很多流行的框架和工具盒中已经能经常看到 LESS 的身影了(例如 Twitter 提供的 bootstrap 库就使用了 LESS)。那么,LESS 是从何而来呢?它和 SASS… Read More
Hello everyone, yesterday I received a request from the client. He wanted to disable the popup of Newsletter Popup extension when customers visit his website on mobile devices. It gave me a chance to work with jQuery again and finally I came up with a solution which can disable the popup using jQuery. Today, I
So I wrote an article for Windows and MacOS X users, time to add one for Linux users as well – how to create an Audio CD.
Granted, most Linux users will not have a need for this article, but maybe it will be helpful for those of us that recently switched to Linux and do