1. 程式人生 > >android 去掉反斜槓

android 去掉反斜槓

從服務端獲取的url="http:\/\/7fviu0.com2.z0.glb.qiniucdn.com\/466-20121217202-20140530121936Fhk4uDjcfeexybD0oDJ-v4w5lYlw"

去掉url中的“\”;

new_url = url.replace("\\","");

去掉之後:new_url = "http://7fviu0.com2.z0.glb.qiniucdn.com/466-20121217202-20140530121936Fhk4uDjcfeexybD0oDJ-v4w5lYlw"