没有合适的资源?快使用搜索试试~ 我知道了~
ajaxfileupload+springmvc例子
5星 · 超过95%的资源 需积分: 9 188 下载量 192 浏览量
2013-06-06
12:25:12
上传
评论
收藏 52KB DOC 举报
温馨提示
试读
5页
handleError: function( s, xhr, status, e ) { // If a local callback was specified, fire it if ( s.error ) { s.error.call( s.context || s, xhr, status, e ); } // Fire the global callback if ( s.global ) { (s.context ? jQuery(s.context) : jQuery.event).trigger( "ajaxError", [xhr, s, e] ); } },
资源推荐
资源详情
资源评论
Springmvc + ajaxfileupload +jquery
Jquery 文件上传,这个搞了一天才搞好,网上例子虽然多,可是没怎么看懂
下载 ajaxfileupload.js
Jsp 示例代码
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'main2.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<!-- 导入对应的样式和js -->
<script src="<%=basePath%>css/theme/scripts/jquery-
1.8.2.min.js"></script>
<script src="<%=basePath
%>css/theme/scripts/ajaxfileupload.js"></script>
<!-- 执行上传文件操作的函数 -->
P123654789963258741
- 粉丝: 0
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页