我观察到Canvas.toDataUrl在浏览器中返回不同的值。 I Canvas.toDataURL方法是否可能在所有浏览器中返回相同的字符串?(无论是使用客户端代码还是服务器代码)。
FireFox中的空白画布,
数据:图像/ PNG; BASE64,iVBORw0KGgoAAAANSUhEUgAAAMYAAAA3CAYAAABXVTXhAAAApklEQVR4nO3TMQEAIAzAsPk3DQLWH45EQZ / OAZZ5HQA / MgYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGBGNAMAYEY0AwBgRjQDAGhAtrCYfA7BeW0wAAAABJRU5ErkJggg ==
Chrome中的空白画布
数据:图像/ PNG; BASE64,iVBORw0KGgoAAAANSUhEUgAAAMYAAAA3CAYAAABXVTXhAAABgElEQVR4Xu3VIRKAQAwEQfj / owFLgRi / jY5J56Y4r + c7fAQIvAROYXgRBL4CwvAqCPwICMOzICAMb4BAE / DHaE6mxgSEMXZw6zYBYTQnU2MCwhg7uHWbgDCak6kxAWGMHdy6TUAYzcnUmIAwxg5u3SYgjOZkakxAGGMHt24TEEZzMjUmIIyxg1u3CQijOZkaExDG2MGt2wSE0ZxMjQkIY + zg1m0CwmhOpsYEhDF2cOs2AWE0J1NjAsIYO7h1m4AwmpOpMQFhjB3cuk1AGM3J1JiAMMYObt0mIIzmZGpMQBhjB7duExBGczI1JiCMsYNbtwkIozmZGhMQxtjBrdsEhNGcTI0JCGPs4NZtAsJoTqbGBIQxdnDrNgFhNCdTYwLCGDu4dZuAMJqTqTEBYYwd3LpNQBjNydSYgDDGDm7dJiCM5mRqTEAYYwe3bhMQRnMyNSYgjLGDW7cJCKM5mRoTEMbYwa3bBITRnEyNCQhj7ODWbQLCaE6mxgSEMXZw6zaBG4pF21yd2aa + AAAAAElFTkSuQmCC