1 Star 0 Fork 0

martian2049/node

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
index.html 983 Bytes
Copy Edit Raw Blame History
martian2049 authored 2018-07-04 14:55 . session
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="nofollow">
<meta name="viewport"
content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
</head>
<img
id="theimg" onload="update()"
crossorigin = "Anonymous" crossOrigin = "Anonymous"
src="http://anis.oss-cn-beijing.aliyuncs.com/onepiece/3.mp4?x-oss-process=video/snapshot,t_50000,f_jpg,w_800,h_600,m_fast">
<canvas id="thecanvas" width=200 height=200></canvas>
<script type="text/javascript">
function update(){
var ctx = thecanvas.getContext("2d");
ctx.drawImage(theimg, 0, 0, thecanvas.width, thecanvas.height);
try{
let wtf = thecanvas.toDataURL("image/png");
// let wtf = thecanvas.toBlob();
alert(wtf.substring(0,20))
}catch(e){
alert(e)
}
}
</script>
<h1>yo</h1>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/martian2049/node.git
git@gitee.com:martian2049/node.git
martian2049
node
node
master

Search