关于javascript with性能的一段阐述

Simply by being in the language, the with statement significantly slows down JavaScript processors because it frustrates the lexical binding of variable names. It was well intentioned, but the language would be better if it didn't have it.

原文地址:https://www.cnblogs.com/zdjray/p/3113154.html