AngularJS ng-open 指令
AngularJS 教程
· 2019-04-01 22:59:48
AngularJS 实例
通过点击 checkbox 显示或隐藏 <details> 列表:
<input type="checkbox" ng-model="showDetails">
<details ng-open="showDetails">
<summary>码农网 | 程序员? 码农? Hello, World!</summary>
<p> - 码农教程</p>
</details>
<details ng-open="showDetails">
<summary>码农网 | 程序员? 码农? Hello, World!</summary>
<p> - 码农教程</p>
</details>
定义和用法
ng-open 指令用于设置 details 列表的 open 属性。
如果 ng-open 的表达式返回 true 则 details 列表是可见的。
语法
<details ng-open="expression">...</details>
<details> 元素支持该指令。
参数值
| 值 | 描述 |
|---|---|
| expression | 如果表达式为 true 则会设置 details 的 open 属性。 |
点击查看所有 AngularJS 教程 文章: https://codercto.com/courses/l/36.html
The Filter Bubble
Eli Pariser / Penguin Press / 2011-5-12 / GBP 16.45
In December 2009, Google began customizing its search results for each user. Instead of giving you the most broadly popular result, Google now tries to predict what you are most likely to click on. Ac......一起来看看 《The Filter Bubble》 这本书的介绍吧!