var select=document.createElement("select"); select.setAttribute("class","field size2"); // 从隐藏的选择框里找选项 var hideSelect=document.getElementById("hideSelect"); for(var i=0;i<hideSelect.options.length;i++){ var op=d…
You can use Select and Option elements in combination with ng-for and ng-model to create mini-forms that change your data as you make a selection. /** * Created by wanzhen on 23.10.2015. */ import {Component, View, NgFor, FORM_DIRECTIVES} from 'angul…