摘要:
var collection = charts.OrderByDescending(item = item.Value).Take(10).ToList(); Dictionarystring, int dictionary = new Dictionarystring, int(); foreach (var item in collection) { dictionary.Add(item.Key, item.Value); } 阅读全文
摘要:
//获取角色的ID function getRoleID(checkBoxName) { var selectRoleID = ""; $("input[name='" + checkBoxName + "']").each( function() { if ($(this).attr('checked') == true) { selectRoleID += $(this).val() + ","; } } ); return selectRoleID;}$("input[type='checkbox']:checked").attr("value"); 阅读全文