ctx:canvasstr:文本 注意:measureText方法兼容 context.fillText(str, (ctx.width - ctx.measureText(str).width) / 2, 0)