1、安裝
$ bower install jquery.filer
2、使用方法
<link href="./css/jquery.filer.css" type="text/css" rel="stylesheet" />
<link href="./css/themes/jquery.filer-dragdropbox-theme.css" type="text/css" rel="stylesheet" />
引入jquery和jquery.filer.min.js文件。
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="./js/jquery.filer.min.js"></script>
3、Html結構
<form action="./php/upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="files[]" id="filer_input" multiple="multiple">
<input type="submit" value="Submit">
</form>
4、初始化插件
$(document).ready(function() {
$('#filer_input').filer();
});
KeyMob移動端廣告平臺是精準穩定的無線廣告、移動端廣告平臺,使應用開發者得到插屏廣告、視頻廣告收入高,廣告主投放移動廣告、手機廣告營銷效果也很好,能夠信任的手機廣告聯盟。
php