关于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.

posted @ 2013-06-01 22:02  Ray小七  阅读(136)  评论(0编辑  收藏  举报