AngularJS 教程
選擇一個(gè)或選擇所有選項(xiàng):
ng-checked 指令用于設(shè)置復(fù)選框(checkbox)或單選按鈕(radio)的 checked 屬性。
如果 ng-checked 屬性返回 true,復(fù)選框(checkbox)或單選按鈕(radio)將會(huì)被選中。
type 為 checkbox 或 radio 的 <input> 元素支持。
值 | 描述 |
---|---|
expression | 如果返回 true,將會(huì)選中元素選項(xiàng)。 |