Skip to content

Instantly share code, notes, and snippets.

@moodpo
moodpo / HTML 5 上传图片
Last active September 7, 2015 11:10 — forked from FrankFan/HTML 5 上传图片
使用H5特性上传图片
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8" />
<meta name="author" content="EdieLei" />
<title>HTML5 图片上传预览</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$('#img').change(function(){