<script src="/scripts/jquery/jquery-3.1.1.min.js"></script> <script type="text/javascript"> $(function () { var fileInfo = $(‘#file‘).prop(‘files‘)[0]; var fm = new FormData(); fd.append("xxxx", fileInfo); $.post("url", fm, function (rs) { }, "json"); }) </script>
时间: 2024-11-05 13:41:01