//设置不同的参数进行处理
string g = "cabg"; string g2 = "ag"; string text8 = string.Concat(new string[] { this.qqwabb(g), "-", this.qqwabb(g2), "-", this.qqwabb(g2), " ", this.qqwabb(g2), ":" }); string g3 = "aa"; text8 = text8 + this.qqwabb(g3) + ":" + this.qqwabb(g3);
private string qqwabb(string g000) { string text = ""; string result; if (string.IsNullOrEmpty(g000)) { result = text; } else { char[] array = new char[] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' }; char[] array2 = g000.ToCharArray(); int num = array.Length; char[] array3 = array2; for (int i = 0; i < array3.Length; i++) { char c = array3[i]; for (int j = 0; j < num; j++) { if (c.Equals(array[j])) { text += j.ToString(); } } } result = text; } return result; }
PS:js获取配置文件参数
var eTime = '<%=System.Web.Configuration.WebConfigurationManager.AppSettings["EndTime"]%>';