mongoDB 多重数组查询(AngularJS绑定显示 nodejs)
核心代码:
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?lessonName={{lessonInfo.lessonName}}&lessonNo={{title.lNo}}&lesId={{lesId}}&subLName={{title.subLName}}" rel="external nofollow" >课时{{title.lNo}}:{{title.subLName}}</a> </li> </ul>
lessonInfo为AngularJS接收到后台传过来的数据数组
相关推荐
大秦铁骑 2020-08-19
thatway 2020-08-19
lovecodeblog 2020-08-19
Lzs 2020-10-23
聚合室 2020-11-16
零 2020-09-18
Justhavefun 2020-10-22
jacktangj 2020-10-14
ChaITSimpleLove 2020-10-06
Andrea0 2020-09-18
周游列国之仕子 2020-09-15
afanti 2020-09-16
88234852 2020-09-15
YClimb 2020-09-15
风雨断肠人 2020-09-04
卖口粥湛蓝的天空 2020-09-15
stulen 2020-09-15