在IOS系统中,safari浏览器的select标签默认展现样式和iOS-UIPickerView展现方式一致,形以下图:css
这个选择器操做方便,样式优美。可是在安卓系统中展现的样式就截然不同了。iosselect是一个模拟ios下select标签展现交互的组件,它能实如今IOS和安卓的浏览器中交互样式一致。html
实现一个特定的选择器不难,好比一个特定的地址选择器,时间选择器,单列选择器,难点在一个组件能实现多种不一样的选择器,能适应多种需求。ios
iosselect实现了多种选择器,好比:git
http://zhoushengfe.com/iosselect/demo/one/bank.htmlgithub
http://zhoushengfe.com/iosselect/demo/two/sanguokill.htmlajax
http://zhoushengfe.com/iosselect/demo/three/area.htmlnpm
http://zhoushengfe.com/iosselect/demo/rem/bank.html浏览器
http://zhoushengfe.com/iosselect/demo/datepicker/date.html布局
http://zhoushengfe.com/iosselect/demo/five/time.htmlhtm
http://zhoushengfe.com/iosselect/demo/six/time.html
能够自定义级联层级,实现多级选择器。
能够使用静态数据,经过parentid关联;也能够使用方法,实现ajax数据交互,而后再关联数据。
支持移动端rem布局,能够使用px和rem来书写样式
能够配置显示的项数
能够配置高度
支持npm方式直接引用。
也支持静态文件引用,只须要引用一个js和css文件
具体文档可参看github:https://github.com/zhoushengmufc/iosselect