AngularJS 中 checkbox 设置默认选中

定义和用法

ng-checked 指令用于设置复选框(checkbox)或单选按钮(radio)的 checked 属性。

如果 ng-checked 属性返回 true,复选框(checkbox)或单选按钮(radio)将会被选中。

语法

type 为 checkbox 或 radio 的 元素支持。

参数值

描述
expression 如果返回 true,将会选中元素选项。

你可能感兴趣的:(前端,angularjs)