html代码:

<div ></canvas>//使用者看到的是video,而上传的是canvas中的画像
</div>

 

js代码:

function onload();
  try {
    document.createElement("canvas").getContext("2d");      //动态创建一个canvas元 ,并获取他2Dcontext。如果出现异常则表示不支持 

  })
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
  • 2021-12-18
  • 2021-12-02
  • 2021-05-26
  • 2022-12-23
  • 2021-12-22
猜你喜欢
  • 2022-12-23
  • 2022-02-07
  • 2021-07-24
  • 2021-12-02
  • 2021-04-29
  • 2022-12-23
相关资源
相似解决方案