YUI你好世界
我正在尝试做一些实验性的事情,YUI 看起来是最好的解决方案。入门文档都是在假设您已经知道如何使用 YUI 并且只需要了解如何使用特定组件的情况下编写的。是否有任何可用文档告诉您如何从空的 public_html 目录转到 YUI 中的某种 Hello World 等效目录(最好是版本 3)?
I'm trying to do some experimental stuff for which YUI looks like the best solution. The Getting Started documentation is all written on the assumption that you already know how to use YUI and only need to find out how to use specific components. Is there any documentation available that tells you how to go from an empty public_html directory to some kind of Hello World equivalent in YUI (preferably version 3)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
YUI 的使用就像使用任何 javascript 一样:您需要在 html 的 head 部分中包含相关的 js 文件,然后编写一些 javascript 将它们连接在一起(调用 yui 方法)。
最简单的yui按钮示例的页面源码
http://developer.yahoo.com/yui/examples/button/btn_example01_clean。 html
可能是最好的起点:显示头部的外观以及您可以使用按钮执行的操作。
YUI is used like you would use any javascript: you need to include the relevant js files in the head section of your html and then write some javascript to tie them together (call the yui methods).
The page source for the simplest yui button example
http://developer.yahoo.com/yui/examples/button/btn_example01_clean.html
is probably the best place to start: shows how the head section would look like and what you can do with the button.
rwallace ——这不完全是“Hello World”,但“编写你的第一个 YUI 应用程序”可能值得你花时间:
http://www.insideria.com/2008/05/writing-your-first-yui-applica.html
请注意,这是不久前写的,并且依赖树发生了一些变化 - 从
http://developer.yahoo.com/yui/articles/hosting/?animation&autocomplete&get&json&MIN&norollup
问候,
埃里克
rwallace -- It's not exactly "Hello World," but "Writing Your First YUI Application" may be worth your time:
http://www.insideria.com/2008/05/writing-your-first-yui-applica.html
Note that this was written a while back, and the dependency tree has changed a little -- grab the latest info from
http://developer.yahoo.com/yui/articles/hosting/?animation&autocomplete&get&json&MIN&norollup
Regards,
Eric
你可能会比查看 Douglas Crockfords 的 Javascript 教程更糟糕。
请参阅此问题
https://stackoverflow.com/questions/11246/best-resources-to-learn -javascript
You could do worse than to check out Douglas Crockfords tutorials on Javascript.
See this question
https://stackoverflow.com/questions/11246/best-resources-to-learn-javascript