您有个知识币

【退出】

    jquery ajax例子

    经常用到jquery ajax,但有时候会忘记怎么写,下面做个笔记。 jquery ajax例子: //post 方式 $.ajax({ url : 'test.php', type : 'post', data : {'act':'addvideo', 'videoname':videoname},//这里使用json对象 success : function(data){           //code here... }, fail:function(){         //code here... } });   //get 方式 $.get("test.php", { name: "...阅读全文
    作者:黑♂白 | 分类: web前端 | 阅读:760 |