Skip to content

lakeui/upload-jquery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

jquery async upload plugin easy to use

// 上传方法
$.upload({
		// 上传地址
		url: '/admin/upload', 
		// 文件域名字
		fileName: 'filedata', 
		// 其他表单数据
		params: {name: 'pxblog'},
		// 上传完成后, 返回json, text
		dataType: 'json',
		// 上传之前回调,return true表示可继续上传
		onSend: function() {
				return true;
		},
		// 上传之后回调
		onComplate: function(data) {
				alert(data);
		}
});

About

jquery async upload plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%