当前位置:网站首页>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 ',
})
}
边栏推荐
- Has polardb for PostgreSQL entered the list of Xinchuang database?
- Go language interface and type
- Techempower web framework performance test 21st round results release --asp Net core continue to move forward
- 空间三点画圆代码
- Variable and immutable data types
- Guess JWT keyword
- 7. Character coding?
- 8. = = and = = =?
- Tree chain partition board
- Template inheritance and import
猜你喜欢

开窗函数(1)-部门工资前三员工

Number of times a number appears in an ascending array

jmeter --静默运行

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

6126. Design food scoring system

QT—动画框架

web渗透经验汇总ing

微信小程序逆向

Typora is still the most beautiful and beautiful document editing artifact of yyds in my heart. I believe you will never abandon it

JMeter -- silent operation
随机推荐
Date function format conversion
middleware
Learn redisson from scratch ------- topics (subscription and distribution)
Introduction and use of Pinia
Template inheritance and import
移动端实现0.5px的实用方案
EasyUI adds row level buttons to the DataGrid
Wechat applet
Show or hide password plaintext + password box verification information
Problems needing attention in writing pages
2. JS variable type conversion, automatic conversion, manual conversion, what is the difference between parseint(), parsefloat(), number()?
如何为超级通胀做好准备
Read zepto source code touch module
关于接口的写法 1链式判读 ?. 2方法执行 (finally)一定会执行
Typora is still the most beautiful and beautiful document editing artifact of yyds in my heart. I believe you will never abandon it
文件上传漏洞——.user.ini与.htaccess
[verification] only numbers (positive and negative numbers) can be entered
Inoic4 learning notes 2
[OBS] cooperation between video and audio coding and RTMP transmission
Four ways of simple interest mode