Three linkage menu for Province, City, County

来源:互联网 发布:大数据营销与创新答案 编辑:程序博客网 时间:2024/06/03 19:13

To load adzone faster, we need to use ajax to load the province, city or county when it's parent changed.

Here is the major code:

1. Main page

 

 

2. Common javascript in tms.common.js

 

 

3. Data format

We use json to transfer the data, it's format must be:

3.1 Province

 

3.2 City (山西省)

 

3.3 County

 

 

 

4. Result

 

Province - City - County

Province:  City:  County: 


 

 

 

原创粉丝点击