0
我嘗試這樣做:如何檢查字符串值是否是數組或不使用SWIFT
var array = ["led","zepp","jimmy","page"]
if array.contains("jimmy") { // error : [String] does not have a member named 'contains' .
print("yes")
}
什麼是對[String]
類型數組的語法?
你的語法是正確的斯威夫特2.對於雨燕1.2,'如果包含(陣「吉米「)' – vacawama