gridstack实现布局数据可保存加载清空示例代码
代码语言:html
所属分类:其他
代码描述:gridstack实现布局数据可保存加载清空示例代码
代码标签: gridstack 布局 数据 保存 加载 清空 示例 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.4.3.1.min.css"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/gridstack.css"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css"> <style type="text/css"> .grid-stack { background: lightgoldenrodyellow; } .grid-stack-item-content { color: #2c3e50; text-align: center; background-color: #18bc9c; } </style> </head> <body> <div class="jq22-container"> <div class="jq22-content bgcolor-3"> <div class="container-fluid"> <h1>保存组件 demo</h1> <div> <a class="btn btn-default" id="save-grid" href="#">保存</a> <a class="btn btn-default" id="load-grid" href="#">加载</a> <a class="btn btn-default" id="clear-grid" href="#">清空</a> </div> <br/> <div class="grid-stack"> </div> <hr/> <textarea id="saved-data" cols="100" rows="20" readonly></textarea> </div> </div> </div> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.1.11.min.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-ui.1.12.1.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/lodash.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/bootstrap.4.3.1.min.js"></script> <script type="text/javascript" src="//repo.bf.........完整代码请登录后点击上方下载按钮下载查看
网友评论0