关闭

Introduction to Ajax

1040人阅读 评论(1) 收藏 举报
http://javascriptsearch.com/guides/Beginner/articles/MasteringAJAX_1.html


讲得不错。特别是最后两段,是初学者的苦口良药:思考比copy & paste更重要!
For now, though, spend some time thinking about just how powerful Ajax applications can be. Imagine a Web form that responds to you not just when you click a button, but when you type into a field, when you select an option from a combo box...even when you drag your mouse around the screen. Think about exactly what asynchronous means; think about JavaScript code running and not waiting on the server to respond to its requests. What sorts of problems can you run into? What areas do you watch out for? And how will the design of your forms change to account for this new approach in programming?

 

If you spend some real time with these issues, you'll be better served than just having some code you can cut-and-paste and throw into an application that you really don't understand. In the next article, you'll put these ideas into practice and I'll give you the details on the code you need to really make applications like this work. So, until then, enjoy the possibilities of Ajax.

 

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:645287次
    • 积分:7533
    • 等级:
    • 排名:第2949名
    • 原创:116篇
    • 转载:15篇
    • 译文:11篇
    • 评论:212条
    IT评论