Commit 8f25f543 by 施宇

1

parent e3d7aab6
Showing with 3 additions and 3 deletions
const printData = (xnum,weight,arr) =>{ const printData = (xnum,weight,arr) =>{
let length = arr.length; let length = arr.length;
let newLength = Math.ceil(length/10);//十条数据为一个标签 let newLength = Math.ceil(length/7);//7条数据为一个标签
let str = ""; let str = "";
for(let i = 0;i<newLength;i++){ for(let i = 0;i<newLength;i++){
let j = i*10; let j = i*7;
let k = (i+1)*10; let k = (i+1)*7;
str+="! 0 200 200 400 1\n"; str+="! 0 200 200 400 1\n";
str+="B QR 200 0 M 2 2 10\n"; str+="B QR 200 0 M 2 2 10\n";
str+="MA,QR code :"+xnum+","+weight+"\n"; str+="MA,QR code :"+xnum+","+weight+"\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment