NSURL *url = [NSURL URLWithString:@"http://www.baidu.com/s?tn=baiduhome_pg&bs=NSRUL&f=8&rsv_bp=1&rsv_spt=1&wd=NSurl&inputT=2709"]; NSLog(@"Scheme: %@", [url scheme]); NSLog(@"Host: %@", [url host]); NSLog(@"Port: %@", [url port]); NSLog(@"Path: %@", [url path]); NSLog(@"Relative path: %@", [url relativePath]); NSLog(@"Path components as array: %@", [url pathComponents]); NSLog(@"Parameter string: %@", [url parameterString]); NSLog(@"Query: %@", [url query]); NSLog(@"Fragment: %@", [url fragment]); NSLog(@"User: %@", [url user]); NSLog(@"Password: %@", [url password]);
2015-12-10 21:53:57.171 [4697:358837] Scheme: http 2015-12-10 21:53:57.171 [4697:358837] Host: www.baidu.com 2015-12-10 21:53:57.172 [4697:358837] Port: (null) 2015-12-10 21:53:57.172 [4697:358837] Path: /s 2015-12-10 21:53:57.172 [4697:358837] Relative path: /s 2015-12-10 21:53:57.172 [4697:358837] Path components as array: ( "/", ) 2015-12-10 21:53:57.172 [4697:358837] Parameter string: (null) 2015-12-10 21:53:57.173 [4697:358837] Query: tn=baiduhome_pg&bs=NSRUL&f=8&rsv_bp=1&rsv_spt=1&wd=NSurl&inputT=2709 2015-12-10 21:53:57.173 [4697:358837] Fragment: (null) 2015-12-10 21:53:57.173 [4697:358837] User: (null) 2015-12-10 21:53:57.173 [4697:358837] Password: (null)
NSURL *url=[NSURL URLWithString:@"http://www.baidu.com?id=1"];
NSString *strLocalHtml = @"file:///Users/amarishuyi/Desktop/My IPhone Life/WebDeveloper/WebPlug-in/ExtEditor/DataPage/KMQT/Ext-HTMLEditor.html"; strLocalHtml = [NSString stringWithFormat:@"%@?Value=%@",strLocalHtml,self.txtUrl.text]; strLocalHtml= [strLocalHtml stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSURL * url=[NSURL URLWithString:strLocalHtml];
NSURL *url = [NSURL URLWithString: @"http://www.baidu.com/s?tn=baiduhome_pg&bs=NSRUL&f=8&rsv_bp=1&rsv_spt=1&wd=NSurl&inputT=2709"]; NSLog(@"Scheme: %@", [url scheme]); NSLog(@"Host: %@", [url host]); NSLog(@"Port: %@", [url port]); NSLog(@"Path: %@", [url path]); NSLog(@"Relative path: %@", [url relativePath]); NSLog(@"Path components as array: %@", [url pathComponents]); NSLog(@"Parameter string: %@", [url parameterString]); NSLog(@"Query: %@", [url query]); NSLog(@"Fragment: %@", [url fragment]); NSLog(@"User: %@", [url user]); NSLog(@"Password: %@", [url password]);
2012-03-31 18:22:20.904 SmallDemoList[5473:11603] 12131232 2012-03-31 18:22:20.907 SmallDemoList[5473:11603] Scheme: http 2012-03-31 18:22:20.907 SmallDemoList[5473:11603] Host: www.baidu.com 2012-03-31 18:22:20.907 SmallDemoList[5473:11603] Port: (null) 2012-03-31 18:22:20.907 SmallDemoList[5473:11603] Path: /s 2012-03-31 18:22:20.907 SmallDemoList[5473:11603] Relative path: /s 2012-03-31 18:22:20.907 SmallDemoList[5473:11603] Path components as array: ( "/", ) 2012-03-31 18:22:20.916 SmallDemoList[5473:11603] Parameter string: (null) 2012-03-31 18:22:20.917 SmallDemoList[5473:11603] Query: tn=baiduhome_pg&bs=NSRUL&f=8&rsv_bp=1&rsv_spt=1&wd=NSurl&inputT=2709 2012-03-31 18:22:20.917 SmallDemoList[5473:11603] Fragment: (null) 2012-03-31 18:22:20.917 SmallDemoList[5473:11603] User: (null) 2012-03-31 18:22:20.917 SmallDemoList[5473:11603] Password: (null)
NSURL *urlKindEditor = [[NSBundlemainBundle] URLForResource:@"simple"withExtension:@"html"subdirectory:@"KindEditor/examples"];
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有