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
50981b75
Commit
50981b75
authored
Nov 24, 2021
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
96311a99
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.ts
src/main.ts
+3
-3
No files found.
src/main.ts
View file @
50981b75
async
function
lanuch
()
{
async
function
lanuch
()
{
testArr
(
4
,
8
,
"文本"
,
"标题"
);
testArr
(
4
,
8
,
"文本"
,
"标题"
,
10
,
100
);
}
}
function
rand
(
min
,
max
)
{
function
rand
(
min
,
max
)
{
return
Math
.
floor
(
Math
.
random
()
*
(
max
-
min
))
+
min
;
return
Math
.
floor
(
Math
.
random
()
*
(
max
-
min
))
+
min
;
}
}
export
function
testArr
(
x
,
y
,
xName
,
yName
)
{
export
function
testArr
(
x
,
y
,
xName
,
yName
,
min
,
max
)
{
var
arr
=
[];
var
arr
=
[];
for
(
var
i
=
1
;
i
<
x
;
i
++
){
for
(
var
i
=
1
;
i
<
x
;
i
++
){
arr
[
0
]
=
[
"数据名称"
];
arr
[
0
]
=
[
"数据名称"
];
...
@@ -15,7 +15,7 @@ export function testArr(x, y, xName, yName) {
...
@@ -15,7 +15,7 @@ export function testArr(x, y, xName, yName) {
arr
[
i
][
0
]
=
xName
+
i
;
arr
[
i
][
0
]
=
xName
+
i
;
for
(
var
j
=
1
;
j
<
y
;
j
++
){
for
(
var
j
=
1
;
j
<
y
;
j
++
){
arr
[
0
][
j
]
=
yName
+
j
;
arr
[
0
][
j
]
=
yName
+
j
;
arr
[
i
][
j
]
=
rand
(
10
,
100
);
arr
[
i
][
j
]
=
rand
(
min
,
max
);
}
}
}
}
}
}
...
...
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