Variable naming can be a source of coding angst for humans trying to understand code. Once you’re sure that a human doesn’t need to interpret your JavaScript code, variables simply become generic placeholders for values. Nicholas C. Zakas shows us how to further minify JavaScript by replacing local variable names with the YUI Compressor.
展开▼
机译:变量命名可能是试图理解代码的人的编码焦虑之源。一旦确定人类不需要解释您的JavaScript代码,变量便会简单地成为值的通用占位符。 Nicholas C. Zakas向我们展示了如何通过使用YUI Compressor替换局部变量名称来进一步缩小JavaScript。
展开▼