 
						更新时间:2020-12-30 10:10:14
引入js
| 1 | <scriptsrc="./index_selection.js"></script> | 
引入css
| 1 | <linkrel="stylesheet"type="text/css"media="screen"href="./index_selection.css"> | 
html代码
| 1 2 3 4 5 6 7 8 | <divclass="index_selection_page_container">   <header>      <divclass="title">选择城市</div>      <divclass="icon_container">         <iclass="iconfont icon-close"></i>      </div>   </header></div> | 
调用-数据示例
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | vardataSource = [{    key: 'A', //右侧悬浮栏的文字和列表对应的文字           dataList: [        //此拼音下的数据               {            label: '阿凡达', //列表显示的文字                           value: '点击后想要的获取的内容'//点击后想获取的文字                },        {            label: '阿里巴巴',            value: '点击后想要的获取的内容'        }    ],    key: 'B',    dataList: [{        label: '内容',        value: '点击后想要的获取的内容'    }],    key: '#',    dataList: [{        label: '柳州市',        value: '广西 柳州市'    }]}]//数据可不传,不传默认为城市列表newindexSelection(dataSource, function(value) {    alert(value)}) | 
特别申明:
			本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
			本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
			如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com