Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
Warehouse
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8f25f543
authored
May 08, 2020
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
e3d7aab6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
utils/util.js
utils/util.js
View file @
8f25f543
const
printData
=
(
xnum
,
weight
,
arr
)
=>
{
let
length
=
arr
.
length
;
let
newLength
=
Math
.
ceil
(
length
/
10
);
//十
条数据为一个标签
let
newLength
=
Math
.
ceil
(
length
/
7
);
//7
条数据为一个标签
let
str
=
""
;
for
(
let
i
=
0
;
i
<
newLength
;
i
++
){
let
j
=
i
*
10
;
let
k
=
(
i
+
1
)
*
10
;
let
j
=
i
*
7
;
let
k
=
(
i
+
1
)
*
7
;
str
+=
"! 0 200 200 400 1\n"
;
str
+=
"B QR 200 0 M 2 2 10\n"
;
str
+=
"MA,QR code :"
+
xnum
+
","
+
weight
+
"\n"
;
...
...
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