Make a practical selector and stay away from finding plug-ins in the world.
Usage: In the JS package description, direct use of examples is also possible.
Cause: Mobile selectors have always been plug-ins on the Internet.
Disadvantages:
1. In the early stage, you need to find a lot of plug-ins for filtering, which wastes a lot of time.
2. There are few that meet the requirements, and fewer can be used at the end;
3. The project has special requirements and must comply with the design draft;
So this time I wrote a selector to show the figure:
Class 1: Custom single Selector
Category 2: two independent option selectors
Category 3: year, month, and day Selector
Category 4: year, month, and day + time Selector
Advantages:
1. A small amount of code
2. Easy to use and understand
3. high variability. you can create your own selector by understanding your ideas.
Disadvantages:
The package is not very good. This is based on the current overall level. As you learn and understand it, it will be optimized gradually, making the selector better and better.
Project address: https://github.com/liu12fei08fei/mobile-selector