Commit 3f1013b2 authored by 李俊赕's avatar 李俊赕

编辑字段

parent b80d2800
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
if(txt.indexOf('时间')>=0){ if(txt.indexOf('时间')>=0){
canvas.fillText(txt, 10, canvasHeight - txtHeight * h++); canvas.fillText(txt, 10, canvasHeight - txtHeight * h++);
}else{ }else{
if(txt.length>20){ if(txt.length>21){
canvas.fillText(txt.substr(18,21), 10, canvasHeight - txtHeight * h++); canvas.fillText(txt.substr(18,21), 10, canvasHeight - txtHeight * h++);
canvas.fillText(txt.substr(0,21), 10, canvasHeight - txtHeight * h++); canvas.fillText(txt.substr(0,21), 10, canvasHeight - txtHeight * h++);
}else{ }else{
......
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 to comment