ajax前端返回数据,内容前面有空格

success:function(res){
                          res=res.replace(/\s/g,'');
                          alert(res);
}

 

posted @ 2019-10-22 14:28  yuan9580  阅读(432)  评论(0编辑  收藏  举报