ajax post表单提交方法

$.ajax({
    type: 'post' ,
    url: 'themeServlet.do?method=settheme',
    cache:false ,
    data:{'id':arr[0].id} ,
    dataType:'json' ,
    success:function(result){
        //3 提示信息
        $.messager.show({
            title:result.status ,
            msg:result.message
        });
    } ,
    error:function(result){
        $.messager.show({
            title:result.status ,
            msg:result.message
        });
    }

猜你喜欢

转载自leiding.iteye.com/blog/2292493