后端代码:
ViewData["question"] = JsonConvert.SerializeObject(model);
前端获取:
@(Html.Raw(JsonConvert.DeserializeObject(ViewData["question"].ToString())))
后端代码:
ViewData["question"] = JsonConvert.SerializeObject(model);
前端获取:
@(Html.Raw(JsonConvert.DeserializeObject(ViewData["question"].ToString())))