摘要: // 文件上传成功,给item添加成功class, 用样式标记上传成功。 uploader.on( 'uploadSuccess', function( file,response ) { path.push(response); console.log(path); $( '#'+file.id 阅读全文
posted @ 2017-07-11 08:42 mayer326 阅读(6828) 评论(0) 推荐(1) 编辑
摘要: 我们在添加文章时,除了文章标题,内容等,也需要给文章添加缩略图,此时对于图片的存储方式与顺序,有以下两种思路: 1、在点击上传图片后就将图片传入服务器,在填写好文章,提交文章内容时将图片路径一起保存到数据库 2、点击上传图片后,程序并未真正进行上传操作,只是拿到图片预计存储路径。填写好文章,提交文章 阅读全文
posted @ 2017-07-11 06:56 mayer326 阅读(566) 评论(0) 推荐(0) 编辑