zl程序教程

您现在的位置是:首页 >  前端

当前栏目

手机日期插件jquery mobiscroll 实例

2023-09-14 08:56:48 时间
    IEnumerable SelectListItem  genders = new SelectList(new List string (){"male", "female"});  
    Dictionary string, IEnumerable SelectListItem  books = new Dictionary string, IEnumerable SelectListItem ();  


详情:http://docs.mobiscroll.com/2-14-3/mvc-helpers

 

 

以下是本人看了一下API后随意写的几个例子,其实用select去做会更好,此处只是演示,就随便啦!

 

自定义年月(去掉年月日的"日"滚轮布局):

 


        // wheels:[], 设置此属性可以只显示年月,此处演示,就用下面的onBeforeShow方法,另外也可以用treelist去实现  
        onBeforeShow: function (inst) { inst.settings.wheels[0].length 2?inst.settings.wheels[0].pop():null; }, //弹掉“日”滚轮  
            return $(#treelist li).eq(array[0]).children(span).text() + + $(#treelist li).eq(array[0]).find(ul li).eq(array[1]).text().trim( );