[Html]
Ar list = data. rows;
If (list. length> 0 ){
$ ("# Leftselect: first "). append ("<option id = '0' value = '" + list [0] + "'>" + list [0] + "</option> ");
If (list. length> 1 ){
For (var I = 1; I <list. length; I ++ ){
$ ("# Leftselect option: last "). after ("<option id = '" + I + "'value ='" + list [I] + "'>" + list [I] + "</option>" );
}
}
}
Var list = data. rows;
If (list. length> 0 ){
$ ("# Leftselect: first "). append ("<option id = '0' value = '" + list [0] + "'>" + list [0] + "</option> ");
If (list. length> 1 ){
For (var I = 1; I <list. length; I ++ ){
$ ("# Leftselect option: last "). after ("<option id = '" + I + "'value ='" + list [I] + "'>" + list [I] + "</option>" );
}
}
} Var list is a List object uploaded from the background. You can use ajax to obtain the content of this section of js: Add a node first, and then append the node cyclically after the node.