首页 > Web开发 > 详细

AngularJS 细节

时间:2017-01-04 10:59:41      阅读:239      评论:0      收藏:0      [点我收藏+]

AngularJS 表达式({{ expression }})类似于 AngularJS ng-bind
例子:

<span>表达式</span>
<div ng-app="" ng-init="quantity=1;cost=5">
 
<p>总价: {{ quantity * cost }}</p>
 
</div>
<span>ng-bind:</span>
<div ng-app="" ng-init="quantity=1;cost=5">
 
<p>总价: <span ng-bind="quantity * cost"></span></p>
 
</div>

 

AngularJS 细节

原文:http://www.cnblogs.com/IKang8701348/p/6247373.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!