我通过f2 <- function(name, ..., env = parent.frame()) {
env$ar <- list()
arguments <- as.list(match.call()[-1])
arguments <- arguments[setdiff(names(arguments), c("name", "env"))]
for (i in 1 : length(as.list(arguments))) {
arguments[[i]] <- eval(arguments[[i]], envir = env)
}
env$ar[name] <- list(arguments)
}
calibration <- 0.8
solution <- "ohoh"
f2("sample", calibration = calibration)
ar
f2("sample", calibration = calibration, solution = solution)
ar
f2("sample", params = list(calibration = calibration, solution = solution))
ar
(帖子)发送数据到API
服务器响应是:
HttpRequestHeader
我需要将每个值字符串以在单独的标签中查看它们。
等
code1=7ea12f&code2=3867&code3=123&code4=104
由于
答案 0 :(得分:-1)
你可以这样做:
var nameValueCollection = System.Web.HttpUtility.ParseQueryString("code1=7ea12f&code2=3867&code3=123&code4=104");
label1.text = nameValueCollection["code1"];
label2.text = nameValueCollection["code2"];
label3.text = nameValueCollection["code3"];
label4.text = nameValueCollection["code4"];