<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link href="css/mui.min.css" rel="stylesheet" />
<script src="js/mui.min.js"></script>
<script src="js/jquery-1.8.3.min.js"></script>
<style>
.imageup{ width:100px; height: 36px; line-height:36px;}
.button{ width:100px; height: 50px; line-height:50px;}
</style>
</head>
<body>
<div align="center" style="margin-top: 80px;">
<img id="uploadImg" src='images/60x60.gif' height="800px" width="800px">
<br /><br />
<h3><a href="javascript:;" class="mui-upload">上传图片</a></h3>
<br /><br />
<button onclick="UploadImages();" class='mui-btn-primary' style="width: 80px;">提交</button>
<button onclick="Refresh();" class='mui-btn-primary' style="width: 80px;">刷新</button>
<button onclick="getLocation();" class='mui-btn-primary' style="width: 80px;">定位</button>
</div>
<script src="js/mui.upload.js"></script>
<script>
function Refresh(){
document.getElementById("uploadImg").src = 'images/60x60.gif';
mui实现压缩手机本地图片并上传
最新推荐文章于 2022-04-16 17:43:52 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)