AngularJS ng-show 指令
AngularJS 教程
· 2019-04-02 06:57:06
AngularJS 实例
复选框选中时显示部分内容:
显示 HTML: <input type="checkbox" ng-model="myVar">
<div ng-show="myVar">
<h1>Welcome</h1>
<p>Welcome to my home.</p>
</div>
<div ng-show="myVar">
<h1>Welcome</h1>
<p>Welcome to my home.</p>
</div>
定义和用法
ng-show 指令在表达式为 true 时显示指定的 HTML 元素,否则隐藏指定的 HTML 元素。
语法
<element ng-show="expression"></element>
所有的 HTML 元素支持该指令。
参数值
| 值 | 描述 |
|---|---|
| expression | 如果表达式为 true 则显示指定的 HTML 元素。 |
点击查看所有 AngularJS 教程 文章: https://codercto.com/courses/l/36.html
Using Google App Engine
Charles Severance / O'Reilly Media / 2009-5-23 / USD 29.99
With this book, you can build exciting, scalable web applications quickly and confidently, using Google App Engine - even if you have little or no experience in programming or web development. App Eng......一起来看看 《Using Google App Engine》 这本书的介绍吧!