C# MVC Html.DropDownList htmlAttributes 增加 data_options


1.data-options 换成 data_options 验证可行

@Html.DropDownList("wk_Type", ViewBag.wk_Type as IEnumerable, new {  @data_options = "editable:false",@class = "easyui-combobox",  style = "width: 150px;" })

2. 验证可行

@Html.DropDownList("wk_Type", ViewBag.wk_Type as IEnumerable, new Dictionary() { { "class", "easyui-combobox" }, { "style", "width: 150px;" }, { "data-options", "editable:false" } })


你可能感兴趣的:(C#,MVC,JQuery,EasyUI)