swift-上传字符数组

前端之家收集整理的这篇文章主要介绍了swift-上传字符数组前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

let icdIds = NSMutableString.init(string:"[")

for i in0...self.diagnoseArray.count-1 {

let icd=self.diagnoseArray[i]as? ICD10Dto

icdIds.appendFormat("'%@',",(icd?.id)!)

}

icdIds.deleteCharacters(in: NSMakeRange(icdIds.length-1,1))

icdIds.append("]")


/*

let param:Dictionary<NSString,NSString> = ["icd10Ids":icdIds,"advice":paramDict.object(forKey:"advice") as!NSString]

*/

猜你在找的Swift相关文章