jquery中$.ajax

        $.ajax({
        type : 'post',
        url  : '/edm/testEmail.php',
        data: {tId:tId, sId:sId ,testEmail:testEmail},
        dataType : 'json',
        success:function(msg){
            if(msg.result == 'success'){
                alert('发送成功');
            }else{
                alert(msg.result);
            }
        }
    })

简单记一下,以后有用。

posted @ 2013-08-05 11:20  KoMiles  阅读(223)  评论(0编辑  收藏  举报