preface

plug-in function only to meet our business needs, if you want to have more functions, you can leave a message below, I try to expand! If you are in need of love or you can give me a GitHub star

 < div id= to "wrap"; > < /div> 

container tag page is not restricted, only need to do is ID

 var address = new Address'wrap'showArr: ({wrapId:, ['provinces''areas'], beforeCreat:function,'citys'(console.log) {(beforeCreat)}, {(afterCreat:function) console.log ('afterCreat');}}) 
 wrapId: "wrap" / / where wrap is above the ID showArr: container ['provinces','citys','areas'] / / here on behalf of the provincial, municipal and district respectively, the ID 

container for example, if you pass an array of ['provinces','citys','areas'] of length 3, then there will be three provinces, a word in the array String are provincial, city and district id

as transfer array ['provinces', the length of'citys'] is 2, then there will be two provinces, a string in the array are the id

are summarized as what function needs to be added, can leave a message in the comments section, I try to meet. If there is any negligence or mistake, I hope you will point out. I will amend it as soon as possible so as not to mislead others.

This paper fixed link:http://www.script-home.com/primary-js-implementation-of-three-level-linkage-code-sharing-in-urban-and-urban-areas.html | Script Home | +Copy Link

Article reprint please specify:Primary JS implementation of three level linkage code sharing in urban and urban areas | Script Home

You may also be interested in these articles!