标签:hid ons foreach cli tin event 文本 hide col
string str = wgtextBox.Text; string lsStr = ""; if (string.IsNullOrEmpty(str)) return; foreach (char c in str) { if (!char.IsDigit(c) && c != ‘-‘) { continue; } lsStr += char.ToString(c); } for (int i = 0; i < lsStr.Length; i++) { string c = lsStr.Substring(i, 1); if ((c == "-" && i != 4) && (i != 7 && c == "-")) { Console.WriteLine(i); lsStr = lsStr.Remove(i, 1); i --; continue; } } wgtextBox2.Text = lsStr;
标签:hid ons foreach cli tin event 文本 hide col
原文地址:https://www.cnblogs.com/weigetadie/p/10981285.html