使用ueditor实现多图片上传案例——截取字符串层Util(SubString_text)
来源:互联网 发布:淘宝网的购买流程 编辑:程序博客网 时间:2024/06/05 17:50
/** * @Title: ConfigManager.java* @Package org.util* @Description: TODO该方法的主要作用:* @author A18ccms A18ccms_gmail_com * @date 2017-9-29 上午8:01:39* @version V1.0 */package org.util;import org.entity.Shopping; /** * * 项目名称:test_fuwenben * 类名称:ConfigManager * 类描述: 测试 * 创建人:Mu Xiongxiong * 创建时间:2017-9-29 上午8:01:39 * 修改人:Mu Xiongxiong * 修改时间:2017-9-29 上午8:01:39 * 修改备注: * @version * */public class SubString_text {public static void SubString_text_picture(Object entity,String text) {Shopping shopping = (Shopping) entity;//text = "<p><img src=\"http://localhost:8080/test_fuwenben//ueditor/jsp/upload/image/20170930/1506774556153096952.jpg\" title=\"1506774556153096952.jpg\"/></p>" +//"<p><img src=\"http://localhost:8080/test_fuwenben//ueditor/jsp/upload/image/20170930/1506774556372013191.jpg\" " +//"title=\"1506774556372013191.jpg\"/></p><p><br/></p>";//截取pString subArray_p[] = new String []{};String s = new String(text);subArray_p = s.split("</p>");String picture = "";for (int i = 0; i < subArray_p.length; i++) {int title = subArray_p[i].indexOf("ueditor");int end = subArray_p[i].indexOf("title");if(title>0&&end>0){String picture_name = subArray_p[i].substring(title, end);picture+=picture_name+",";}}shopping.setPicture(picture);System.out.println("图片名称:"+picture);}}
阅读全文
1 0
- 使用ueditor实现多图片上传案例——截取字符串层Util(SubString_text)
- 使用ueditor实现多图片上传案例——Dao层(BaseDao)
- 使用ueditor实现多图片上传案例——Dao层(IBaseDaoUtil)
- 使用ueditor实现多图片上传案例——Dao层(IShoppingDao)
- 使用ueditor实现多图片上传案例——DaoImpl层(BaseDaoUtilImpl)
- 使用ueditor实现多图片上传案例——DaoImpl层(ShoppingDaoImpl)
- 使用ueditor实现多图片上传案例——Service层(IShoppingService)
- 使用ueditor实现多图片上传案例——ServiceImpl层(ShoppingServiceImpl)
- 使用ueditor实现多图片上传案例——Servlet层(UploadServlet)
- 使用ueditor实现多图片上传案例——前台数据层(Index.jsp)
- 使用ueditor实现多图片上传案例
- 使用ueditor实现多图片上传案例——实体类(Shopping.java)
- ueditor实现的图片上传(多图片上传的改造版本)
- UEditor + golang 实现图片上传
- 使用ueditor实现单独的图片上传功能
- 实现ueditor + 图片空间 实现图片上传
- 织梦使用百度Ueditor编辑器上传图片自动生成绝对路径实现方法(测试可用)
- 百度UEditor里面截取出来的图片上传功能
- 乐观锁和悲观锁
- LeetCode——十進制轉換為二進制
- 使用ueditor实现多图片上传案例——ServiceImpl层(ShoppingServiceImpl)
- VS2015配置32位boost库
- 触碰大师们的思想(二)之 策略模式
- 使用ueditor实现多图片上传案例——截取字符串层Util(SubString_text)
- 使用ueditor实现多图片上传案例——Servlet层(UploadServlet)
- 项目banner设计网站
- Math 常用的方法
- 使用ueditor实现多图片上传案例——前台数据层(Index.jsp)
- volatile关键字
- 删除ubuntu,安装CentOS 7(原先是windows 8.1、ubuntu双系统)
- GoldenDream-十月
- TV颜色空间—YUV,YIQ,YCbCr