tinyImgUpload
一个灵活的图片上传插件,支持预览和异步上传图片,并且不依赖jQuery等js库。
A flexible and independent image upload plugin that can preview and upload image asynchronously.
使用方法
执行tinyImgUpload方法
tinyImgUpload(ele, options)
@param ele [string] [生成组件的元素的选择器]
@param options [Object] [对组件设置的基本参数]
options具体参数如下
path 图片上传的地址路径 必需
onSuccess(res) 文件上传成功后的回调 参数为返回的文本 必需
onFailure(res) 文件上传失败后的回调 参数为返回的文本 必需
@return [functio
评论0
最新资源