核心代码:

js代码

var Lesson = Schema({ 
  lessonName: String, 
  intr: String, 
  creTime: Date, 
  sort: String, //分类 
  imgUrl: String, //封面地址 
  price: Number, 
  teacher: String,//教师 
  subTitle:[{ 
    lNo: Number, 
    subLName: String, 
    src: String, 
    filtered: {type: Boolean, default: false} 
    }] 
}); 

我的HTML代码

<ul class="menu fl"> 
  <li ng-repeat="title in lessonInfo.subTitle" ng-hide="{{!title.filtered}}"><a ng-href="showVideo" rel="external nofollow" >课时{{title.lNo}}:{{title.subLName}}</a> </li> 
</ul>

lessonInfo为AngularJS接收到后台传过来的数据数组

广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!