1

I am trying to create a simple dropdown list on riot. The issue is that I can't see the title and value from the dropdown. My code is:

  <select id="inputType" >
    <option each={item in items} value={item.value} >{item.title}</option>
  </select>
4

1 回答 1

1

问题很简单,我做了一个 var items,应该做 this.items

于 2016-04-15T13:58:51.590 回答