Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
modulesServer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
standardized
modulesServer
Commits
bde4c6a5
Commit
bde4c6a5
authored
Nov 24, 2021
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
816bd8d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
main.ts
src/main.ts
+5
-5
No files found.
src/main.ts
View file @
bde4c6a5
async
function
lanuch
()
{
async
function
lanuch
()
{
testArr
();
testArr
(
4
,
8
);
}
}
function
randArray
(
len
,
min
,
max
)
{
function
randArray
(
len
,
min
,
max
)
{
...
@@ -26,12 +26,12 @@ export function test() {
...
@@ -26,12 +26,12 @@ export function test() {
}
}
export
function
testArr
()
{
export
function
testArr
(
x
,
y
)
{
var
arr
=
[];
var
arr
=
[];
var
n
=
1
;
for
(
var
i
=
0
;
i
<
x
;
i
++
){
for
(
var
i
=
0
;
i
<
3
;
i
++
){
arr
[
i
]
=
[];
//每行有3列
arr
[
i
]
=
[];
//每行有3列
for
(
var
j
=
0
;
j
<
5
;
j
++
){
arr
[
i
][
0
]
=
"数据名称"
+
(
i
+
1
);
for
(
var
j
=
1
;
j
<
y
;
j
++
){
arr
[
i
][
j
]
=
rand
(
10
,
100
);
arr
[
i
][
j
]
=
rand
(
10
,
100
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment