Date data converted to three-level linkage array

Source: Internet
Author: User

Each data structure is as follows:

{    id: 2,    year: "2016",    month: "09",    day: "19",    time_name: "下午班",    time_range: "14:00-17:00"},

Need to be based on the date of the data into the following linkage effect, temporarily did not think of a better cycle to their image of the provinces and cities as the linkage of the data structure, because after all, there are 3 dimensions. What better way to solve it?

Reply content:

Each data structure is as follows:

{    id: 2,    year: "2016",    month: "09",    day: "19",    time_name: "下午班",    time_range: "14:00-17:00"},

Need to be based on the date of the data into the following linkage effect, temporarily did not think of a better cycle to their image of the provinces and cities as the linkage of the data structure, because after all, there are 3 dimensions. What better way to solve it?

It is too cumbersome to filter by code, we recommend using Web SQL, you can search for related articles
Or you can take a look at this HTML5 local storage

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.