purple-class2-默认选项切换
生活随笔
收集整理的這篇文章主要介紹了
purple-class2-默认选项切换
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
| ylbtech-class:purple-class2 |
?
| A, 返回頂部 |
1,默認(rèn)選項(xiàng)切換
#region 默認(rèn)選項(xiàng)切換public delegate IList<SelectListItemInfo> DelegateDrop(IList<SelectListItemInfo> dals, string arrayStr);/// <summary>/// 默認(rèn)選項(xiàng)切換/// </summary>/// <param name="arrayStr"></param>/// <param name="dalsTemple"></param>/// <returns></returns>public IList<SelectListItemInfo> GetSwitch(string arrayStr, IList<SelectListItemInfo> dalsTemple){IList<SelectListItemInfo> dals = new List<SelectListItemInfo>();string[] array = arrayStr.Split(',');IList<SelectListItemInfo> dalsRole = dalsTemple;foreach (SelectListItemInfo item in dalsRole){SelectListItemInfo dal = item;if (array.Contains(item.Value)){dal.Selected = "selected=\"checked\"";}dals.Add(dal);}return dals;}#endregion View Code2,
3,
4,
5,
6,
| B,返回頂部 |
6,
7,
8,
9,
10,
11,
| C,返回頂部 |
11,
| 作者:ylbtech 出處:http://storebook.cnblogs.com/ 本文版權(quán)歸作者和博客園共有,歡迎轉(zhuǎn)載,但未經(jīng)作者同意必須保留此段聲明,且在文章頁(yè)面明顯位置給出原文連接,否則保留追究法律責(zé)任的權(quán)利。 |
總結(jié)
以上是生活随笔為你收集整理的purple-class2-默认选项切换的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 牛客网 --java问答题
- 下一篇: 纯css3天气动画场景特效