练习 jQuery 学习
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3962494/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Practice exercises for learning jQuery
提问by Vivian River
I'm picking up jQuery and jQuery UI and I would like some suggestions on some practice exercises for learning the libraries.
我正在学习 jQuery 和 jQuery UI,我想要一些关于学习库的练习的建议。
I'm particularly interested in Ajax and anything that might be a little bit .net centric.
我对 Ajax 和任何可能有点以 .net 为中心的东西特别感兴趣。
I acknowledge that the jQuery web site has lots of simple examples showing how to use all the individual function calls, but I'm interested in seeing how they work with more practical examples.
我承认 jQuery 网站有很多简单的例子展示了如何使用所有单独的函数调用,但我有兴趣看看它们如何与更实际的例子一起工作。
采纳答案by Mike
Rading jquery official documentation, tutorials as well as deploying your own code, just start low and go slow, after all the bugs and doubts, tons of google searches and SO browsing you will be a guru. I think it is the best way, probably not the most productive. As someone said: the expert is one who had a lot of errors on the way and learnt from them.
Rading jquery 官方文档、教程以及部署您自己的代码,从低开始,慢慢来,经过所有的错误和疑问,大量的谷歌搜索和 SO 浏览,您将成为大师。我认为这是最好的方法,可能不是最有成效的。正如有人所说:专家是一位在途中犯过很多错误并从中吸取教训的人。
So start coding now! If you want ajax: search for getJSON() function first, I think it is the best step to start learing client-server interaction.
所以现在就开始编码吧!如果你想要 ajax: 首先搜索 getJSON() 函数,我认为这是开始学习客户端 - 服务器交互的最佳步骤。
PS: also some good javascript book is also good for you, whiule jquery allow a big deal of abstraction it is still based on javascript.
PS:还有一些好的 javascript 书籍对你也有好处,虽然 jquery 允许大量抽象它仍然基于 javascript。
If you still want some links, here you go:
如果您仍然想要一些链接,请访问:
回答by Kaleb Brasee
Games are always fun. I wrote a chess gameto learn jQuery AJAX programming, which was complicated but cool. If you're looking for something simpler, perhaps Tic-Tac-Toe would be a good choice.
游戏总是很有趣。我写了一个国际象棋游戏来学习jQuery AJAX编程,虽然复杂但很酷。如果您正在寻找更简单的东西,也许 Tic-Tac-Toe 将是一个不错的选择。
回答by Moses
A good way to pickup jQuery and AJAX is to just build websites. Setup a local web server with MAMP/WAMP/XAMPP and just start building / designing whatever kind of pages you want to.
使用 jQuery 和 AJAX 的一个好方法是构建网站。使用 MAMP/WAMP/XAMPP 设置本地 Web 服务器,然后开始构建/设计您想要的任何类型的页面。
If you're short on design inspiration, try to reverse engineer existing websites / web apps without looking at source code.
如果您缺乏设计灵感,请尝试在不查看源代码的情况下对现有网站/网络应用程序进行逆向工程。
回答by Fosco
Something simple I used to do with dynamic code generation was to make an etch-a-sketch type page..
我曾经用动态代码生成做的一件简单的事情是制作一个 etch-a-sketch 类型的页面。
Make an X by X grid of pixel-like blocks, and give them all a hover effect of changing their color.. maybe change it each time it's hovered to something else.. play around with that concept a bit and add enhancements and features..
制作一个由像素状块组成的 X x X 网格,并为它们提供更改颜色的悬停效果。也许每次悬停时都将其更改为其他内容……稍微玩转该概念并添加增强功能和功能。 .