【发布时间】:2016-07-29 13:26:20
【问题描述】:
{{input type="radio" name="customerFacing" value=report.customerFacing id="customerFacingYes" change=(action "customerFacingChange" "yes")}}<label for="customerFacingYes">Yes</label>
如果变量“report.customerFacing”为真或假,我正在尝试将单选按钮设置为选中状态。有什么我可以用 javascript 编写的东西来将其设置为选中吗?
谢谢
【问题讨论】:
-
你必须创建一个自定义组件,请查看这里stackoverflow.com/questions/30244040/…
标签: javascript ember.js