Amaze UI Upload基于 Amazeui 扩展的 Upload 组件
Amaze UI Upload 插件。
使用说明:
获取 Amaze UI Upload
-
在 Amaze UI 样式之后引入 Upload 样式(
dist
目录下的 CSS):Amaze UI Upload 依赖 Amaze UI 样式。
<link rel="stylesheet" href="../dist/amazeui.min.css"/> <link rel="stylesheet" href="../dist/amazeui.upload.css"/>
-
在 jQuery 之后引入 Upload 插件(
dist
目录下的 JS):<script src="../dist/jquery.min.js"></script> <script src="../dist/amazeui.min.js"></script> <script src="../dist/amazeui.upload.js"></script> <script src="../dist/amazeui.upload.template.js"></script> <script src="../dist/amazeui.upload.event.js"></script>
-
Html 定义:
<div id="event"></div>
-
初始化 Upload:
$(function(){ $('#event').AmazeuiUpload({url : 'http://localhost/demo.json'}); });
评论