html
正义的琼
坐等下班
展开
-
springboot 实现图片上传,包含其他元素
数据库字段:tb_goodsdetial:Controller://商家增加商品--》待审核状态、待上架@PostMapping("/goodsAdd")@ResponseBodypublic JsonResult insertGood(TbGoodsdetail goodsDetail, MultipartFile gPicture1,String goodsTypeName,HttpSession session) throws FileNotFoundException { J原创 2021-07-16 09:15:01 · 297 阅读 · 0 评论 -
上传头像实现预览功能
<div class="layui-form-item"> <label class="layui-form-label"> <span class="x-red">*</span>商品缩略图 </label> <div class="lay.原创 2021-07-16 09:02:24 · 383 阅读 · 0 评论 -
img th:src传输图片
<img th:src="@{/upload/{id}(id=${goods.getGPicture()})}" width="100px" />原创 2021-07-16 08:51:41 · 2813 阅读 · 4 评论 -
th:href传参
th:href传参th:href="@{'deleteGood?goodsId='+${goods.getGoodsId()}}"原创 2021-07-13 21:54:30 · 623 阅读 · 0 评论 -
HTML使用th标签给表格增加序号
HTML使用th标签给表格增加序号使用Stat.index+1<tbody th:each="goods:${goodsList}"><tr> <td> <span th:text="${goodsStat.index+1}"></span> </td></tr>原创 2021-07-13 21:52:24 · 3299 阅读 · 0 评论 -
使用onclick跳出弹窗确认是否删除
跳出弹窗确认是否删除<button th:title="删除" style="text-decoration:none" type="button" th:value="${goods.goodsId}" onclick="deleteGood(this.value)"> <i class="layui-icon"></i></button><script>//确认是否删除商品(当前行)弹原创 2021-07-13 21:47:29 · 1543 阅读 · 0 评论