string url = "https://i.cnblogs.com/EditPosts.aspx?opt=1&type=2"; string param = url.Split('?')[1]; string optParam = HttpUtility.ParseQueryString(param).Get("opt"); string type = HttpUtility.ParseQueryString(param).Get("type");
本文共 319 字,大约阅读时间需要 1 分钟。
string url = "https://i.cnblogs.com/EditPosts.aspx?opt=1&type=2"; string param = url.Split('?')[1]; string optParam = HttpUtility.ParseQueryString(param).Get("opt"); string type = HttpUtility.ParseQueryString(param).Get("type");
转载于:https://www.cnblogs.com/lijianhong90/p/8404966.html