jquery OCUpload use a key to upload the plugin
OCUpload(One Click Upload)
The first step: the introduction page js file
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.ocupload-
1.1.2.js"></script>
Step Two: Provide an arbitrary element in the page
Step Three: Call upload method provided by the plug, to dynamically modify HTML page elements
<script type="text/javascript">
$(function(){
//页面加载完成后,调用插件的upload方法,动态修改了HTML页面元素
$("#myButton").upload({
action:'xxx.action',
name:'myFile'
});
});
</script>