1<div> 2 <!-- For_Compiler_Test_001 --> 3 <div for="{{list}}" onclick="test($item)"> 4 <text>{{$idx}}.{{$item.name}}</text> 5 </div> 6 7 <!-- For_Compiler_Test_002 --> 8 <div> 9 <div for="personItem in list" onclick="test($idx)"> 10 <text>{{$idx}}-{{personItem.name}}--{{personItem.age}}</text> 11 </div> 12 <image src="{{personItem}}" /> 13 </div> 14 15 <!-- For_Compiler_Test_003 --> 16 <div> 17 <div for="(personIndex, personItem) in list" onclick="test(personItem)"> 18 <text>{{personIndex}}.{{personItem.name}}</text> 19 </div> 20 <swiper index="{{personIndex}}" loop="{{personItem}}"></swiper> 21 </div> 22 23 <!-- For_Compiler_Test_004 --> 24 <div for="(personIndex, personItem) in list" onclick="test(personItem)"> 25 <div for="(index,item) in menu"> 26 <text>{{personItem.id}}--{{item.name}}</text> 27 </div> 28 </div> 29 30 <!-- For_Compiler_Test_005 --> 31 <div for="(personIndex, personItem) in list" onclick="test(personItem)"> 32 <div for="(index,item) in personItem"> 33 <text>{{index}}--{{item.name}}</text> 34 </div> 35 </div> 36 37 38 <!-- For_Compiler_Test_006 --> 39 <div for="(personIndex, personItem) in list" onclick="test(personItem)"> 40 <div onclick="{{personItem.click}}"> 41 {{personIndex}}.{{personItem.name}} 42 </div> 43 </div> 44 45 <!-- For_Compiler_Test_007 --> 46 <div for="(value, index) in value.list" onclick="test(value)"> 47 <div onclick="{{value.click}}">{{value.info}}</div> 48 </div> 49 50 <!-- For_Compiler_Test_008 --> 51 <div for="shrinkClass in flexShrinkClass" onclick="test(value)"> 52 <div onclick="{{value.click}}">{{value.info}}</div> 53 </div> 54</div>