jquery 实用POST 万能POST get

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/a1057962851/article/details/84864661
	$.ajax({
   url: 'http://xxx.enapp.cn/index/api/plpost',
   type: 'post',
   dataType:'json',
   //async:false,
   data: {
        "text" : $('#strbody').val(),
        "name" : $('#username').val(),
        "shouji": $('#phonea').val(),
        "uid" : $('#uid').val(),
   },
   success:function(data){
      console.log(data);                     
   },
   error:function(data){
      console.log(data);
   }
});

猜你喜欢

转载自blog.csdn.net/a1057962851/article/details/84864661
今日推荐