jquery 常用ajax

$.ajax({
                        url : url,
                        type : 'post',
                        data : {
                            activeName:title,
                            ids : ids.join(',')
                        },
                        async:false,  //外部变量设置值时用到
                        cache : false,
                        success : function(data) {

           //  alert(d.toSource()); 显示Object 里源


                            var d = $.parseJSON(data);
                            if (d.success) {
                                var msg = d.msg;
                                tip(msg);
                                reloadTable();
                                ids='';
                            }
                        }
                    });

posted @ 2015-12-03 10:52  R142857  阅读(69)  评论(0)    收藏  举报