html5 canvas element and svg

后端 未结 8 2251
暗喜
暗喜 2020-12-14 01:56

Why do we need the html5 canvas element, when the same can be achieved through embedded svg?

8条回答
  •  无人及你
    2020-12-14 02:28

    http://people.mozilla.com/~vladimir/xtech2006/ has nice comparison.

    With canvas you don't have to deal with the DOM, which leads to faster and easier to write code. SVG is a mess as a specification, too...

提交回复
热议问题