GetJsonByDataTable】的更多相关文章

public string getJsonByModel(DataTable dt) { StringBuilder nsb = new StringBuilder(); ; i < dt.Rows.Count; i++) { StringBuilder sb = new StringBuilder(); sb.Append("{"); foreach (DataColumn mDc in dt.Columns) { if (dt.Rows[i][mDc] != null) {…