标签:type sys 使用 collect new name col generic hid
Dictionary<string, string> dc = new Dictionary<string, string>();
前台页面:
<div id="tb"> @if (ViewBag.data != null) { foreach (KeyValuePair<string, string> item in ((System.Collections.Generic.Dictionary<string, string>)ViewBag.data)) { <input type="hidden" name="@item.Key" value="@item.Value" /> } } </div>
标签:type sys 使用 collect new name col generic hid
原文地址:https://www.cnblogs.com/chenze-Index/p/11051129.html