【发布时间】:2018-03-16 00:57:19
【问题描述】:
我正在尝试在我的 Meteor 应用上使用物化选择表单,但它似乎不起作用....
这是我的代码:
html
<template name="createAutomatedaction">
<div class="input-field col s12">
<select>
<option value="" disabled selected>Choose your option</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
<label>Materialize Select</label>
</div>
</template>
js
Template.createAutomatedaction.onRendered(function(){
this.$('select').material_select();
});
当我点击选择表单时,下拉菜单不显示。谁能告诉我我错过了什么?非常感谢您的帮助。
与这个 https://www.dropbox.com/s/nzh7sp5x7by6e1t/Screenshot%202015-05-09%2018.20.54.png?dl=0
没有这个 https://www.dropbox.com/s/e1asl3y5pbtg5yp/Screenshot%202015-05-09%2018.24.08.png?dl=0
【问题讨论】:
-
没有“这个”。它也不能正常工作?
-
感谢您的回复。正如你所看到的(我编辑了我的问题),有这个显示选择表单,没有这个不显示选择表单......所以没有这个似乎不起作用。
标签: meteor materialized