摘要: let newStr = String(str[..<index]) // = str.substring(to: index) In Swift 3 let newStr = String(str[index...]) // = str.substring(from: index) In Swif 阅读全文
posted @ 2017-10-12 13:59 罗小浮 阅读(4307) 评论(0) 推荐(1) 编辑