bootStrap-table(五) 页面刷新及表单回显

本文介绍了如何在使用BootStrap-table时实现页面刷新功能,并详细讲解了在表单提交后如何进行数据回显,确保用户体验。通过实例代码和截图,展示了设置与获取数据、维护表格状态的步骤。
摘要由CSDN通过智能技术生成

效果图

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.thymeleaf.org ">

<head>
    <meta charset="utf-8"/>
    <title>菜单管理</title>
</head>
<style type="text/css">
    .table {
        table-layout: fixed;
    }

    .treegrid-tbody td {
        border: 0 !important;
        border-left: 1px solid #e7eaec !important;
        border-bottom: 1px solid #e7eaec !important;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
</style>
<body>
<!--bug 要实现效果,需要将js css 放进body-->
<link th:href="@{/assets/plugins/bootstrap-table/bootstrap-table.min.css}" rel="stylesheet">
<link rel="stylesheet" th:href="@{/assets/plugins/bootstrap-table/jquery.treegrid.min.css}">
<ol class="breadcrumb">
    <li class="active"></li>
    <li class="active">菜单管理</li>
</ol>
<div id="main">
    <div class="form-group">
        <div>
            <a role="button" onclick="doEdit(0)
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值