问题描述
有没有人有他们所知道的编写良好的JavaScript应用程序
的例子?我希望代码可读。我特别喜欢YUI的代码
。有没有人有更多的申请/
例子?谢谢。
Does anyone have an example of well written JavaScript applications
that they know about? I would prefer the code to be readable. I
particularly like YUI''s code. Does anyone have any more applications/
examples? Thanks .
推荐答案
查看任何大型库 - jQuery,Prototype,YUI等。
你想从中学到什么样的东西?代码/风格?
Matt Kruse
Look at any of the big libraries - jQuery, Prototype, YUI, etc.
What kinds of things are you trying to learn from the code/style?
Matt Kruse
看看任何大型库 - jQuery,Prototype,YUI等等。
你想从代码/风格中学到什么样的东西?
Matt Kruse
Look at any of the big libraries - jQuery, Prototype, YUI, etc.
What kinds of things are you trying to learn from the code/style?
Matt Kruse
我收集OP喜欢阅读为YUI编写的应用程序,而不是YUI代码本身的
。
I gather the OP likes reading applications written for YUI, rather
than the YUI code itself.
你怎么读我特别喜欢YUI'的代码并将其解释为I
就像为YUI编写的应用程序?听起来更像是OP正在寻找/ b $ b来查看/审查图书馆并将Matt的问题排除在行之前
正确和正确。
-
兰迪
机会有利于准备好的心灵
comp.lang.javascript常见问题 -
Javascript最佳实践 - http://www.JavascriptToolbox.com/bestpractices/
我收集OP喜欢阅读为YUI编写的应用程序,而不是YUI代码本身。
I gather the OP likes reading applications written for YUI, rather
than the YUI code itself.
你怎么看我特别喜欢YUI'的代码并将其解释为I
就像为YUI编写的应用程序?听起来更像OP正在寻找
How do you read "I particularly like YUI''s code" and interpret it as "I
like applications written for YUI"? Sounds more like the OP is looking
YUI显然不是一个应用程序。
YUI is clearly not an application.
即使它是。我不建议阅读库代码,以便如何写好
编写良好的JS应用程序。
Even if it was. I wouldn''t recommend reading the library code to how write
well-written JS applications.
这篇关于JavaScript代码的绝佳示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!