Splicing era
Just take a look at the example.
1 This. images=[//json Format data must be double quotes must be a key-value pair form2{small: '. /images/s11.jpg ', big: '. /images/s11.jpg '},3{small: '. /images/s12.jpg ', big: '. /images/s12.jpg '},4{small: '. /images/s13.jpg ', big: '. /images/s13.jpg '}5 ]6 7Binddomimageold:function() {//The basic way of data stitching (basically in array form)8 varStr= "9 for(varI= 0,len= This. images.length;i<len;i++) {Tenstr+= ' <li> ' Onestr+= ' This. images[i].small+ ' "class=" img-responsive "/>" Astr+= ' This. images[i].small+ ' "class=" img-responsive "/>" -str+= ' </li> ' - } the$ (' #etalage '). HTML (str)
Dynamic creation times
Data binding era
Arttemplate syntax: Returns data that is well-stitched and bound
Template is just a way of data binding;
Mosaic ERA + Dynamic creation ERA + data binding era