需要帮助用jquery学习ajax

时间:2010-12-25 04:50:44

标签: jquery ajax

任何可以建议我用jquery学习ajax的链接..我无法在这个海洋中选择一个网站..请建议可以从基本覆盖的链接..不仅链接,如果有任何书我感觉很棒

谢谢

2 个答案:

答案 0 :(得分:3)

在我看来,你需要的唯一功能(直到你真的疯狂的东西)是$ .ajax()

http://api.jquery.com/jQuery.ajax/

它会将数据发送到脚本并返回结果。

$.ajax({
        url:'path/to/script.php',
        type:'post'
        data:'variable=somevalue&this=that'
        success:function(data){
            // this is the function that is called if it succeeded. the data argument is the output from script.php (if you echo'd out stuff, for example.)
        }
    });

祝你好运,祝圣诞快乐。

答案 1 :(得分:3)

Easy Ajax with jQuery

我还通过发布不同的场景问题从这个平台一步一步地学习了AJAX / jQuery。以下是我的一些问题,对您也有帮助

其中一些是特定于zend框架的,但jQuery / AJAX部分对于所有情况都是相同的。