uploadImage.html 1.61 KB
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>照片</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="src/css/index.css" type="text/css" rel="stylesheet"/>
    <link href="src/css/common.css" type="text/css" rel="stylesheet"/>
    <script type="text/javascript">
        ///*屏蔽鼠标右键的默认事件*/
        function stops(){
            return false;
        }
        document.oncontextmenu=stops;
    </script>

</head>
<body>
<div class="">
    <div id="title">
        <img src="src/image/btn_back.png" id="backimage" onclick="window.history.back()"/>图片
        <button id="saveimage" onclick="saveReturn()">保存</button>
    </div>

    <div class="z_photo upimg-div clear" >
         <span class="imgs">

        </span>
        <section class="z_file fl">
            <img src="src/image/a11.png" class="add-img">
            <input type="file" name="file" id="file" class="file" value="" accept="image/jpg,image/jpeg,image/png,image/bmp" multiple />
        </section>
    </div>
</div>
<aside class="mask works-mask">
    <div class="mask-content">
        <p class="del-p ">您确定要删除作品图片吗?</p>
        <p class="check-p"><span class="del-com wsdel-ok">确定</span><span class="wsdel-no">取消</span></p>
    </div>
</aside>
<script src="dist/jquery/jquery-3.2.1.min.js"></script>
<script src="src/js/imgUp.js"></script>
<script>
    var strImg = localStorage.getItem('strImg')
    console.log(strImg)
    // $('body').append(strImg).find('img').addClass('up-img')
</script>
</body>
</html>