标签:
1、String截取
var s="1234567890" var ns1=(s as NSString).substringFromIndex(5) var ns2=(s as NSString).substringToIndex(4) var ns3=(s as NSString).substringWithRange(NSMakeRange(4, 1)) println(ns1)//67890 println(ns2)//1234 println(ns3)//5
标签:
原文地址:http://my.oschina.net/irisoO/blog/507981