package com.ynet.utils; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Created by Arya on 2017/11/3 0003. */ public class StringUtil { //去除所有空格 public static String replaceAllBlank(String str) { String s = ""; if (str!=nul
一,代码. - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //直接传是没反应的,去掉其中的空格 NSString *url=[[NSString stringWithFormat:@"http://baidu.com"] stringByAddingPercentEscapesUsingEncoding