0

很简单的问题,但似乎无法找到答案......

toDataURL() 方法检索数据块。但它是什么?

是内存地址还是像素信息。

如果它的像素信息有描述它的模式。

4

2 回答 2

1

How silly do I feel

Just looked on wiki to find this link

https://en.wikipedia.org/wiki/Base64

So its a Base64 encoding of the image... I think!

于 2013-06-24T11:53:59.353 回答
0

如果您将返回的字符串toDataURL()插入浏览器地址栏并按回车,它将带您进入渲染图像。

换句话说: toDataURL()提供了一种类似 REST 的方式来访问作为资源的图像。

于 2013-06-24T11:52:06.453 回答