Use js and jq to achieve secondary linkage effect respectively

interface:

    Two drop down boxes.

a1.jpg

Implemented with js method:

b1.jpg

Use the jq method to achieve:

a2.jpg

Notice:

In for(var a in array) in js, the variable a is still the subscript, not the value of the element, which is a bit different from other languages. At the same time, in js, the subscript of the array can store text.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325216709&siteId=291194637