这是我的other_prize
JSON数据
[{“ prizeno”:2,“ prizedesc”:“ Rs
:100,000 /-“,” totalamt“:100000,” conslation“:” f“,” prizeticket“:[{” seriesname“:” RJ“,” digit“:443581,” district“:” THRISSUR“},{ “ seriesname”:“ RK”,“ digit”:633225,“ district”:“ THIRUVANANTHAPURAM”},{“ seriesname”:“ RL”,“ digit”:328674,“ district”:“ KOTTAYAM”},{“ seriesname “:” RG“,”数字“:753947,”地区“:” PALAKKAD“},{”系列名称“:” RE“,”数字“:153871,”地区“:” ERNAKULAM“},{”系列名称“: “ RD”,“数字”:394850,“区域”:“ PALAKKAD”},{“系列名称”:“ RC”,“数字”:162287,“区域”:“ KOZHIKKODE”},{“系列名称”:“ RB “,”数字“:315428,”区域“:” ALAPPUZHA“},{”系列名称“:” RA“,”数字“:706397,”区域“:” KOTTAYAM“},{”系列名称“:” RH“, “ digit”:213805,“ district”:“ IDUKKI”},{“ seriesname”:“ RK”,“ digit”:633435,“ district”:“ THIRUVANANTHAPURAM”},{“ seriesname”:“ RL”,“ digit “:801842,”区“:” KOTTAYAM“},{”系列名称“:” RA“,”数字“:275046,”区“:” KOTTAYAM“},{”系列名称“:” RB“,”数字“: 352182,“ district”:“ KASARGODE”},{“ seriesname”:“ RC”,“ digit”:347419,“ district”:“ WAYANAD”},{“ seriesname”:“ RD”,“ digit”:909948, “ district”:“ MALAPPURAM”},{“ seriesname“:” RE“,” digit“:138627,” district“:” IDUKKI“},{” seriesname“:” RG“,” digit“:583798,” district“:” KOTTAYAM“},{” seriesname“ :“ RH”,“数字”:557799,“区域”:“ THIRUVANANTHAPURAM”},{“系列名称”:“ RJ”,“数字”:837793,“区域”:“ PALAKKAD”}]},{“ prizeno” :3,“ prizedesc”:“ Rs
:10,000 /-“,” totalamt“:10000,” conslation“:” f“,” prizeticket“:{” seriesname“:[],” digit“:52012,” district“:[]}},{” prizeno “:4,” prizedesc“:” Rs
:5,000 /-“,” totalamt“:5000,” conslation“:” f“,” prizeticket“:[{” seriesname“:[],” digit“:3795,” district“:[]},{” seriesname “:[],” digit“:4012,” district“:[]},{” seriesname“:[],” digit“:146,” district“:[]},{” seriesname“:[],” digit“:7857,” district“:[]},{” seriesname“:[],” digit“:5581,” district“:[]},{” seriesname“:[],” digit“:4553,”区“:[]},{”系列名称“:[],”数字“:1200,”区域“:[]},{”系列名称“:[],”数字“:7683,”区域“:[]} ,{“ seriesname”:[],“ digit”:5295,“ district”:[]},{“ seriesname”:[],“ digit”:7791,“ district”:[]}]},{“ prizeno “:5,” prizedesc“:” Rs
:2,000 /-“,” totalamt“:2000,” conslation“:” f“,” prizeticket“:[{” seriesname“:[],” digit“:1841,” district“:[]},{” seriesname “:[],” digit“:4560,” district“:[]},{” seriesname“:[],” digit“:5234,” district“:[]},{” seriesname“:[],” digit“:8664,” district“:[]},{” seriesname“:[],” digit“:7982,” district“:[]},{” seriesname“:[],” digit“:7335,”区“:[]},{”系列名称“:[],”数字“:3849,”区域“:[]},{”系列名称“:[],”数字“:8760,”区域“:[]} ,{“ seriesname”:[],“ digit”:3543,“ district”:[]},{“ seriesname”:[],“ digit”:7865,“ district”:[]}]},{“ prizeno “:6,” prizedesc“:” Rs
:1,000 /-“,” totalamt“:1000,” conslation“:” f“,” prizeticket“:[{” seriesname“:[],” digit“:9090,” district“:[]},{” seriesname “:[],” digit“:8105,” district“:[]},{” seriesname“:[],” digit“:6440,” district“:[]},{” seriesname“:[],” digit“:8793,” district“:[]},{” seriesname“:[],” digit“:1035,” district“:[]},{” seriesname“:[],” digit“:7703,”区“:[]},{”系列名称“:[],”数字“:7414,”区域“:[]},{”系列名称“:[],”数字“:1059,”区域“:[]} ,{“ seriesname”:[],“ digit”:3944,“ district”:[]},{“ seriesname”:[],“ digit”:7595,“ district”:[]},{“ seriesname”: [],“ digit”:5854,“ district”:[]},{“ seriesname”:[],“ digit”:6580,“ district”:[]},{“ seriesname”:[],“ digit” :7488,“ district”:[]},{“ seriesname”:[],“ digit”:4921,“ district”:[]},{“ seriesname”:[],“ digit”:7977,“ district” :[]},{“ seriesname”:[],“ digit”:158,“ district”:[]},{“ seriesname”:[],“ digit”:8635,“ district”:[]},{ “ seriesname”:[],“ digit”:5597,“ district”:[]},{“ seriesname”:[],“ digit”:1997,“ district”:[]},{“ seriesname”:[] ,“数字”:9732,“区域”:[]},{“系列名称”:[],“数字”:891,“区域”:[]} ,{“ seriesname”:[],“ digit”:5797,“ district”:[]},{“ seriesname”:[],“ digit”:1806,“ district”:[]},{“ seriesname”: [],“数字”:8352,“区域”:[]},{“系列名称”:[],“数字”:3870,“区域”:[]},{“系列名称”:[],“数字” :3115,“ district”:[]}]},{“ prizeno”:7,“ prizedesc”:“ Rs
:500 /-“,” totalamt“:500,” conslation“:” f“,” prizeticket“:[{” seriesname“:[],” digit“:8629,” district“:[]},{” seriesname “:[],” digit“:3004,” district“:[]},{” seriesname“:[],” digit“:2960,” district“:[]},{” seriesname“:[],” digit“:4344,” district“:[]},{” seriesname“:[],” digit“:9959,” district“:[]},{” seriesname“:[],” digit“:1768,”区“:[]},{”系列名称“:[],”数字“:367,”区域“:[]},{”系列名称“:[],”数字“:9917,”区域“:[]} ,{“ seriesname”:[],“ digit”:8403,“ district”:[]},{“ seriesname”:[],“ digit”:947,“ district”:[]},{“ seriesname”: [],“ digit”:2276,“ district”:[]},{“ seriesname”:[],“ digit”:4566,“ district”:[]},{“ seriesname”:[],“ digit” :2522,“ district”:[]},{“ seriesname”:[],“ digit”:6844,“ district”:[]},{“ seriesname”:[],“ digit”:430,“ district” :[]},{“ seriesname”:[],“ digit”:8319,“ district”:[]},{“ seriesname”:[],“ digit”:1661,“ district”:[]},{ “ seriesname”:[],“ digit”:4134,“ district”:[]},{“ seriesname”:[],“ digit”:6830,“ district”:[]},{“ seriesname”:[] ,“ digit”:5016,“ district”:[]},{“ seriesname”:[],“ digit”:8097,“ district”:[]},{“ s eriesname“:[],” digit“:7708,” district“:[]},{” seriesname“:[],” digit“:6577,” district“:[]},{” seriesname“:[], “ digit”:134,“ district”:[]},{“ seriesname”:[],“ digit”:5229,“ district”:[]},{“ seriesname”:[],“ digit”:2329, “ district”:[]},{“ seriesname”:[],“ digit”:9174,“ district”:[]},{“ seriesname”:[],“ digit”:3712,“ district”:[] },{“ seriesname”:[],“ digit”:7316,“ district”:[]},{“ seriesname”:[],“ digit”:8242,“ district”:[]},{“ seriesname” :[],“ digit”:3538,“ district”:[]},{“ seriesname”:[],“ digit”:4243,“ district”:[]},{“ seriesname”:[],“ digit “:7288,” district“:[]},{” seriesname“:[],” digit“:8270,” district“:[]},{” seriesname“:[],” digit“:4060,” district “:[]}]},{” prizeno“:8,” prizedesc“:” Rs
:100 /-“,” totalamt“:100,” conslation“:” f“,” prizeticket“:[{” seriesname“:[],” digit“:7062,” district“:[]},{” seriesname “:[],” digit“:7981,” district“:[]},{” seriesname“:[],” digit“:3890,” district“:[]},{” seriesname“:[],” digit“:4997,” district“:[]},{” seriesname“:[],” digit“:3009,” district“:[]},{” seriesname“:[],” digit“:2103,”区“:[]},{”系列名称“:[],”数字“:325,”区域“:[]},{”系列名称“:[],”数字“:3995,”区域“:[]} ,{“ seriesname”:[],“ digit”:3587,“ district”:[]},{“ seriesname”:[],“ digit”:1667,“ district”:[]},{“ seriesname”: [],“ digit”:3737,“ district”:[]},{“ seriesname”:[],“ digit”:3277,“ district”:[]},{“ seriesname”:[],“ digit” :9228,“ district”:[]},{“ seriesname”:[],“ digit”:6854,“ district”:[]},{“ seriesname”:[],“ digit”:9008,“ district” :[]},{“ seriesname”:[],“ digit”:8170,“ district”:[]},{“ seriesname”:[],“ digit”:7364,“ district”:[]},{ “ seriesname”:[],“ digit”:199,“ district”:[]},{“ seriesname”:[],“ digit”:4286,“ district”:[]},{“ seriesname”:[] ,“数字”:9285,“区域”:[]},{“系列名称”:[],“数字”:2873,“区域”:[]},{“ seriesname“:[],” digit“:2636,” district“:[]},{” seriesname“:[],” digit“:337,” district“:[]},{” seriesname“:[], “ digit”:8529,“ district”:[]},{“ seriesname”:[],“ digit”:7677,“ district”:[]},{“ seriesname”:[],“ digit”:1236, “ district”:[]},{“ seriesname”:[],“ digit”:1142,“ district”:[]},{“ seriesname”:[],“ digit”:5923,“ district”:[] },{“ seriesname”:[],“ digit”:2026,“ district”:[]},{“ seriesname”:[],“ digit”:2461,“ district”:[]},{“ seriesname” :[],“ digit”:4696,“ district”:[]},{“ seriesname”:[],“ digit”:9062,“ district”:[]},{“ seriesname”:[],“ digit “:4848,” district“:[]},{” seriesname“:[],” digit“:9409,” district“:[]},{” seriesname“:[],” digit“:5198,” district “:[]},{”系列名称“:[],”数字“:5735,”区域“:[]},{”系列名称“:[],”数字“:7926,”区域“:[]}, {“ seriesname”:[],“ digit”:8557,“ district”:[]},{“ seriesname”:[],“ digit”:3853,“ district”:[]},{“ seriesname”:[ ],“ digit”:713,“ district”:[]},{“ seriesname”:[],“ digit”:8026,“ district”:[]},{“ seriesname”:[],“ digit”: 4445,“区”:[]},{“系列名称”:[],“数字”:3326,“区”:[]},{“系列名称”: [],“数字”:1485,“区域”:[]},{“系列名称”:[],“数字”:2219,“区域”:[]},{“系列名称”:[],“数字” :6833,“ district”:[]},{“ seriesname”:[],“ digit”:6948,“ district”:[]},{“ seriesname”:[],“ digit”:757,“ district” :[]},{“ seriesname”:[],“ digit”:1226,“ district”:[]},{“ seriesname”:[],“ digit”:5657,“ district”:[]},{ “ seriesname”:[],“ digit”:5052,“ district”:[]},{“ seriesname”:[],“ digit”:7343,“ district”:[]},{“ seriesname”:[] ,“数字”:5222,“区域”:[]},{“系列名称”:[],“数字”:6426,“区域”:[]},{“系列名称”:[],“数字”:148 ,“区”:[]},{“系列名称”:[],“数字”:5230,“区域”:[]},{“系列名称”:[],“数字”:5701,“区域”:[ ]},{“ seriesname”:[],“ digit”:4860,“ district”:[]},{“ seriesname”:[],“ digit”:2885,“ district”:[]},{“ seriesname “:[],”数字“:7078,”区域“:[]}]}]
我正在尝试在HTML中显示prizeticket
嵌套数组
<p ng-repeat="prize in other_prize">
{{prize.prizeno}}PRIZE
<p ng-repeat="each in prize.prizeticket">
{{each.district}}
</p>
</p>
但这
ng-repeat
没有显示数据<p ng-repeat="each in prize.prizeticket">
{{each.district}}
</p>
但是
{{prize.prizeticket}}
将返回JSON数组,但不会显示ng-repeat
中的值 最佳答案
用于外部元素
<div ng-repeat="prize in other_prize">
{{prize.prizeno}}
<p ng-repeat="each in prize.prizeticket">
{{each.district}}
</p>
</div>
DEMO