![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
AngularJS
坚持-梦想
云拓科技
展开
-
AngularJS 获取接口数据
AngularJS是一款优秀的JS框架,使用的人数比较多,于是我也加入到项目里。 显示前几条新闻 HTML代码: · {{n.title}} 正在加载... AngularJS代码: angular.module('newsApp', []).controller('newsCtrl', function原创 2017-05-17 11:40:20 · 4788 阅读 · 0 评论 -
AngularJS ng-if="" 表达式
{{h.title}} 积分:ng-if="h.sell_price=='0.00'">{{h.point}}元 {{h.point}}+{{h.sell_price}}元 门店价:¥{{h.market_price}}元原创 2017-05-17 12:57:47 · 4639 阅读 · 0 评论 -
AngularJS 自定义 filter
问题:后台返回新闻json格式数据,新闻标题被UrlEncode了。 解决: var app = angular.module('mainApp', []); app.controller('mainCtrl', function ($scope, $http) { }); 自定义filter app.filter('decodeURI', function () { //原创 2017-08-29 17:00:08 · 290 阅读 · 0 评论