1 Star 0 Fork 13

追梦者/梦幻西游was

forked from 代码库/梦幻西游was 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
Eruca520 提交于 2019-01-22 17:13 . no commit message
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script type="text/javascript" src="File.js" charset="UTF-8"></script>
<script type="text/javascript" src="RandomAcessInputStream.js" charset="UTF-8"></script>
<script type="text/javascript" src="WASDecoder.js" charset="UTF-8"></script>
<script type="text/javascript" src="WASFrame.js" charset="UTF-8"></script>
<script type="text/javascript" src="BufferedImage.js" charset="UTF-8"></script>
<script type="text/javascript" src="BytesArrayUtil.js" charset="UTF-8"></script>
</head>
<body>
<div id="main"></div>
jsReadFile:
<input type="file" onchange="jsReadFiles(this.files)"/>
</body>
</body>
<script type="text/javascript">
//js 读取文件
function jsReadFiles(files) {
if (files.length) {
deleteCxt2d();
new FileSync(files).loadFileAll(UIload)
}
}
function deleteCxt2d() {
let elem =document.getElementById("main")
while(elem.hasChildNodes()) //当elem下还存在子节点时 循环继续
{
elem.removeChild(elem.firstChild);
}
}
function log(e) {
console.log(e)
}
function UIload(data) {
let was= new WASDecoder();
was.load(data);
for(let idx in was.getFrames()){
let image=was.getFrame(idx);
}
}
</script>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/newzhuimengzhe/mhxyqwas.git
git@gitee.com:newzhuimengzhe/mhxyqwas.git
newzhuimengzhe
mhxyqwas
梦幻西游was
master

搜索帮助