bandbox的用法

来源:互联网 发布:水乳推荐知乎 编辑:程序博客网 时间:2024/06/04 18:29

<label style="color:blue">*币别:</label>
     <bandbox id="currency" width="204px">
      <bandpopup>
       <vbox>
        <listbox width="196px"
         onSelect="currency.value=self.selectedItem.label;currency.close();">
         <listhead>
          <listheader align="left"
           label="币种" />
         </listhead>
         <listitem>
          <listcell label="CNY"></listcell>
         </listitem>
         <listitem>
          <listcell label="GBP"></listcell>
         </listitem>
         <listitem>
          <listcell label="HKD"></listcell>
         </listitem>
         <listitem>
          <listcell label="USD"></listcell>
         </listitem>
         <listitem>
          <listcell label="CHF"></listcell>
         </listitem>
        </listbox>
       </vbox>
      </bandpopup>
     </bandbox>

意思是代码,可以当作输入框使用,也可以选择下拉框使用,bandbox可以支持各种组件,这是在前台使用的写死的数据的方法,稍后是在后台实现下拉框的回显,并且带有分页效果

原创粉丝点击