$.ajax({
                url:url+"/crm/contact",
                type:'PUT',
                contentType: "application/json",
                timeout : "3000",
                cache:false,
                data: JSON.stringify({
                    "id":n,
                    "name":$('.pop_name').val(),
                    "phone":$('.pop_phone').val(),
                    "email":$('.pop_email').val(),
                    "position":$('.pop_position').val(),
                    "enterprise": {'id': 1}
                }),
                dataType: "json",
                success:function(str){
                    //弹窗关闭
                    $('.pop').hide();
                    window.location.reload();
                },
                error:function(err){
                    alert("数据刷新失败,请重新刷新");
                }
            });

转自:http://www.cnblogs.com/shiyou00/p/5687553.html

相关文章:

  • 2022-12-23
  • 2021-10-27
  • 2021-06-19
  • 2021-11-24
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2021-05-20
  • 2022-02-21
相关资源
相似解决方案