当前位置:网站首页>Ionic4 learning notes 12 - a east project grid completes the list of goods
Ionic4 learning notes 12 - a east project grid completes the list of goods
2022-07-24 18:24:00 【tongle_ deng】
1、 Page code
<div class="h_title">
List of goods
</div>
<!--
grid system 12 Column
size="6": Indicates that each line has 2 Column ;
-->
<div class="plist">
<ion-grid>
<ion-row>
<ion-col size="6" *ngFor="let item of pList">
<img [src]="item.pic" />
<p>{
{item.title}}</p>
</ion-col>
</ion-row>
</ion-grid>
</div>2、 Data sources
2.1 The picture has been placed in assets/ Under the folder
2.2 ts data
// List of goods
public pList:any[]=[];
// List of goods
for(var i=1;i<=12;i++){
this.pList.push({
pic:'assets/list'+i+'.jpg',
title:' The first '+i+' individual ',
})
}
边栏推荐
猜你喜欢
![[OBS] dependency Library: x264 vs Build](/img/24/4caea5dc6ff092a3161f43b6026d25.png)
[OBS] dependency Library: x264 vs Build

EasyUI framework dialog repeated loading problem

Typora 它依然是我心中的YYDS 最优美也是颜值最高的文档编辑神器 相信你永远不会抛弃它

【OpenCV】—阈值化

Pycharm configuring opencv Library

9. BOM object?

Handwritten blog platform ~ the next day

About the writing method of interface 1 chain interpretation 2. Method execution (finally) must be executed

pycharm配置opencv库

6126. Design food scoring system
随机推荐
Bib | mol2context vec: context aware deep network model learning molecular representation for drug discovery
Getting started with MySQL database
Alibaba /1688 API instructions for searching products by map (pailitao)
Inoic4 learning notes 2
Three ways of redis cluster
IO multiplexing
Use of jumpserver
Common methods of array (2)
Array object methods commonly used traversal methods & higher-order functions
Template inheritance and import
13. What is the difference between onkeydown, up and onkeypress?
Flatten array.Flat (infinity)
初识Pytorch和Pytorch环境配置
Highcharts chart and report display, export data
球面上绘制圆matlab仿真
The difference between KIB and MIB and KB and MB
16. What is the difference between target and currenttarget?
Wu Enda writes: how to establish projects to adapt to AI career
4. Basic type and reference type?
We have to understand the four scopes: application, session, request and page