Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 enyo 代码中添加了一个下拉列表标签,但我不知道如何在其中设置值:
{tag:"select", classes:"myClass", components:[tag:"option"]}
如何添加选项?
如果那是直接 c&p,那么问题出在您的组件数组声明上。它需要是一个对象数组,例如:
...components: [ {tag: "option"} ] ...