当前位置:网站首页>Maker Hongmeng application development training notes 03
Maker Hongmeng application development training notes 03
2022-07-27 11:33:00 【ppyy8】
list Components
List Is a component used to display a list , Contains a series of list items of the same width , Suitable for continuous 、 Present similar data in multiple rows . This article will use list Component implements alphabetic index region list and collapsible region list .
Child components
Support only <list-item-group> and <list-item>.
file
swiper Components
Shuffling figure , Developers just need to focus on the implementation logic , Provide the ability to switch the display of sub components .
Child components
In addition to <list> Sub components beyond .
file
slice function
javascript in slice Method to extract a part of a string , And return the extracted part with a new string , Its usage syntax is as follows “stringObject.slice(start,end)”.
Parameters
start The starting subscript of the fragment to be extracted . If it's a negative number , This parameter specifies the position from the end of the string . in other words ,-1 The last character of a string ,-2 Refers to the penultimate character , And so on .
end The subscript at the end of the segment to be extracted . If this parameter is not specified , The substring to be extracted includes start String to the end of the original string . If the parameter is negative , So it specifies the position from the end of the string .
Return value
A new string . Including strings stringObject from start Start ( Include start) To end end ( barring end) All characters up to .
explain
String Object method slice()、substring() and substr() ( Not recommended ) Can return the specified part of the string .slice() Than substring() Be flexible , Because it allows negative numbers as arguments .slice() And substr() Somewhat different , Because it uses two character positions to specify substrings , and substr() Then use character position and length to specify substring .
Also note that ,String.slice() And Array.slice() be similar .
file
边栏推荐
- The difference between extern and static
- 最长上升子序列模型 AcWing 1010. 拦截导弹
- Tree DP acwing 285. dance without boss
- Maximized array sum after 13 K negations
- 12 is at least twice the maximum number of other numbers
- Game theory acwing 891. Nim game
- The C programming language (2nd) -- Notes -- 1.6
- 第10章 枚举类与注解
- Opengauss kernel analysis - statistics and row count estimation
- Thank you for your likes and attention
猜你喜欢

最长上升子序列模型 AcWing 1010. 拦截导弹

数字三角形模型 AcWing 1018. 最低通行费

Stack acwing 3302. Expression evaluation

求组合数 AcWing 889. 满足条件的01序列

Force buckle - 10. Regular expression matching

Introduction to software vulnerability analysis (I)

Redis simple to use

Find the combination number acwing 885. find the combination number I

Game theory acwing 894. Split Nim game

Moveit2 - 4. robot model and robot state
随机推荐
Tensorflow tensor operation function set
2022牛客多校训练(3)A-Ancestor 题目翻译
(9) Shell I / O redirection
Maximized array sum after 13 K negations
The longest ascending subsequence model acwing 1016. The sum of the largest ascending subsequence
2022 Niuke multi school training (3) a-ancestor topic translation
The C programming language (2nd) -- Notes -- 1.7
Gaussian elimination acwing 884. Gaussian elimination for solving XOR linear equations
The C programming language (2nd) -- Notes -- 1.8
The C programming language (2nd) -- Notes -- 1.6
Digital triangle model acwing 1015. Picking flowers
Game theory acwing 892. Step Nim game
Luogu p3052 [usaco12mar]cows in a skyscraper G
Find the combination number acwing 885. find the combination number I
C programming language (2nd Edition) -- Reading Notes -- 1.5.1
Summary of C language knowledge involved in learning STM32F103 (link only)
Backpack model acwing 1022. Collection of pet elves
Moveit2 - 5. Scenario Planning
背包模型 AcWing 423. 采药
最长上升子序列模型 AcWing 1014. 登山