编程语言:JavaScript
JavaScript:正则表达式的/y标识
本文要讲的是一个ES6特性——正则表达式对象的/y标志的作用.该特性同时也是一个ES4特性,所以Firefox3+都原生支持,其他浏览器目前还没有实现.和/i对应于re.ingoreCase类似,/y标识对应的属性是re.sticky(实际上这个y来自于yylex),sticky的意思是"
The Final Steps to Mastering JavaScript's “this” Keyword
Completing his look at JavaScript's 'this' keyword, Ivaylo Gerchev examines how to use 'this' in callbacks and closures, as well as lexical binding in ES6.
JavaScript Not Working? Here are 10 Common JavaScript Problems
If you need help figuring out why your JavaScript isn't working, consult this list of the 10 most common JavaScript issues from a skilled engineer.
JavaScript APIs - Google Chrome
The complete reference to all APIs made available to Chrome Extensions. This includes APIs for the deprecated Chrome Apps platform as well as APIs still in beta and dev.
vivus.js - svg animation
To give more freedom, it's possible to override the animation of each path and/or the entire SVG. It works a bit like the CSS animation timing function. But instead of using a cubic-bezier function,…
JavaScript 运行机制详解:再谈Event Loop
一年前,我写了一篇《什么是 Event Loop?》,谈了我对Event Loop的理解。 上个月,我偶然看到了Philip Roberts的演讲《Help, I'm stuck in an event-loop》。这才尴尬地发现,自己的理解是错的。我决定重写这个题目,详细、完整、正确地描述JavaScript引擎的内部运行机制。下&
Midnight.js - Switch fixed headers on the fly
Midnight.js is a jQuery plugin that lets you subtly change your headers to make them match the content as you scroll.