new option(text, value, defaultSelected, selected);

语法:
      new Option(text, value, defaultSelected, selected)

说明:
      The Option constructor or the HTML tag. To create an Option object with its constructor:
    
      Once you've created an Option object, you can add it to a selection list using the Select.optionsarray.

参数:
   text   
         (Optional) Specifies the text to display in the select list.

   value   
         (Optional) Specifies a value that is returned to the server when the option is selected and the form is submitted.

   defaultSelected    
          (Optional) Specifies whether the option is initially selected (true or false).

   selected   
          (Optional) Specifies the current selection state of the option (true or false).

你可能感兴趣的:(html)