nzbin / framework7-citypicker Goto Github PK
View Code? Open in Web Editor NEW🗺 CityPicker 移动端城市级联选择器
Home Page: https://nzbin.github.io/Framework7-CityPicker/
License: MIT License
🗺 CityPicker 移动端城市级联选择器
Home Page: https://nzbin.github.io/Framework7-CityPicker/
License: MIT License
你的这个根本达不到实用。是学习用的吧?
1.没有初始化的值
2.不能多个实例
3.地区数据旧,地区排序也没对。
4.为了达成实际的应用,还要加上取消功能。
我改了,地区数据我改到了87.9K,数据结构也简单,因为只有一种结构。性能不会差。
不过,framework7.js本身上百k了。最新版的4.7,有300多k。所以地区数据再小也没多大意义。
初始化数据和取消功能,非常之不好搞。
我写了全部整整370多行(加上注释)才搞好。
忍不住要吐槽下。
为什么所有的点击事件都会去添加active-state这个class? 会影响很多页面其他事件
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.