cocos creator 实现文件读写功能 web版本(二)
web版本(creator 2.2.0)
第一步:在index.html,,加入下面的代码
<input id="file" type="file" class="fileToUpload" style="opacity:0;position:absolute;" onchange="handleFiles(this)"/>
<script type="text/javascript">
// 点击事件监听函数
function handleFiles(){
var
原创
2021-01-01 11:32:49 ·
929 阅读 ·
0 评论