diff --git a/docs/dropdown/examples/table.md b/docs/dropdown/examples/table.md
index 27f3230c..32e6da68 100644
--- a/docs/dropdown/examples/table.md
+++ b/docs/dropdown/examples/table.md
@@ -14,7 +14,7 @@ layui.use(function(){
// dropdown 在表格中的应用
table.render({
elem: '#ID-dropdown-demo-table',
- url: '{{d.root}}/static/json/table/demo5.json',
+ url: '/static/2.8/json/table/demo5.json',
title: '用户数据表',
cols: [[
{type: 'checkbox', fixed: 'left'},
diff --git a/docs/nav/index.md b/docs/nav/index.md
index 78246805..46f8e0bb 100644
--- a/docs/nav/index.md
+++ b/docs/nav/index.md
@@ -307,8 +307,8 @@ layui.use(function(){
默认面包屑
- 首页
- 演示
+ 首页
+ 演示
导航元素
diff --git a/docs/table/examples/autoRender.md b/docs/table/examples/autoRender.md
index 0affca92..37e82ad7 100644
--- a/docs/table/examples/autoRender.md
+++ b/docs/table/examples/autoRender.md
@@ -1,4 +1,4 @@
-
+
ID |
diff --git a/docs/table/examples/css.md b/docs/table/examples/css.md
index fded01ec..aa01f4f3 100644
--- a/docs/table/examples/css.md
+++ b/docs/table/examples/css.md
@@ -49,7 +49,7 @@
// 创建渲染实例
table.render({
elem: '#ID-table-demo-css',
- url:'{{d.root}}/static/json/table/demo1.json', // 此处为静态模拟数据,实际使用时需换成真实接口
+ url:'/static/2.8/json/table/demo1.json', // 此处为静态模拟数据,实际使用时需换成真实接口
page: true,
height: 'full-35',
lineStyle: 'height: 151px;', // 定义表格的多行样式
diff --git a/docs/table/examples/demo.md b/docs/table/examples/demo.md
index 92976408..69da828d 100644
--- a/docs/table/examples/demo.md
+++ b/docs/table/examples/demo.md
@@ -64,7 +64,7 @@ layui.use(['table', 'dropdown'], function(){
// 创建渲染实例
table.render({
elem: '#test',
- url:'{{d.root}}/static/json/table/demo1.json', // 此处为静态模拟数据,实际使用时需换成真实接口
+ url:'/static/2.8/json/table/demo1.json', // 此处为静态模拟数据,实际使用时需换成真实接口
toolbar: '#toolbarDemo',
defaultToolbar: ['filter', 'exports', 'print', {
title: '提示',
diff --git a/docs/table/examples/editModes.md b/docs/table/examples/editModes.md
index a7aa2fc9..9c87cf7c 100644
--- a/docs/table/examples/editModes.md
+++ b/docs/table/examples/editModes.md
@@ -49,7 +49,7 @@ layui.use(function(){
// 渲染
table.render({
elem: '#ID-table-demo-editmodes',
- url: '{{d.root}}/static/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
+ url: '/static/2.8/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
page: true,
css: [ // 设置单元格样式
// 取消默认的溢出隐藏,并设置适当高度
diff --git a/docs/table/examples/editable.md b/docs/table/examples/editable.md
index 5ddddc0a..f52c22e0 100644
--- a/docs/table/examples/editable.md
+++ b/docs/table/examples/editable.md
@@ -14,7 +14,7 @@ layui.use(function(){
// 创建表格实例
table.render({
elem: '#ID-table-demo-editable',
- url: '{{d.root}}/static/json/table/edit.json', // 此处为静态模拟数据,实际使用时需换成真实接口
+ url: '/static/2.8/json/table/edit.json', // 此处为静态模拟数据,实际使用时需换成真实接口
page: true,
//,editTrigger: 'dblclick' // 触发编辑的事件类型(默认 click )。 v2.7.0 新增,之前版本固定为单击触发
css: [
diff --git a/docs/table/examples/filter.md b/docs/table/examples/filter.md
index 5f1c7fb8..5af0b303 100644
--- a/docs/table/examples/filter.md
+++ b/docs/table/examples/filter.md
@@ -9,7 +9,7 @@ layui.use(function(){
// 渲染
table.render({
elem: '#ID-table-demo-filter',
- url:'{{d.root}}/static/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
+ url:'/static/2.8/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
toolbar: 'default',
height: 315,
cols: [function(){
diff --git a/docs/table/examples/onrowContextmenu.md b/docs/table/examples/onrowContextmenu.md
index 50f00a38..028be5f3 100644
--- a/docs/table/examples/onrowContextmenu.md
+++ b/docs/table/examples/onrowContextmenu.md
@@ -11,7 +11,7 @@ layui.use(['table', 'dropdown', 'util'], function(){
table.render({
elem: '#ID-table-onrowContextmenu',
defaultContextmenu: false, // 是否在 table 行中允许默认的右键菜单
- url: '{{d.root}}/static/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
+ url: '/static/2.8/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
page: true,
cols: [[
{field:'id', title:'ID', width:80, fixed: 'left', unresize: true},
diff --git a/docs/table/examples/page.md b/docs/table/examples/page.md
index 2b2496e9..23a7072e 100644
--- a/docs/table/examples/page.md
+++ b/docs/table/examples/page.md
@@ -14,7 +14,7 @@ layui.use('table', function(){
// 创建渲染实例
table.render({
elem: '#ID-table-demo-page',
- url:'{{d.root}}/static/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
+ url:'/static/2.8/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
page: { // 支持传入 laypage 组件的所有参数(某些参数除外,如:jump/elem) - 详见文档
layout: ['limit', 'count', 'prev', 'page', 'next', 'skip'], //自定义分页布局
//curr: 5, //设定初始在第 5 页
diff --git a/docs/table/examples/parse.md b/docs/table/examples/parse.md
index 563d389b..047c66d6 100644
--- a/docs/table/examples/parse.md
+++ b/docs/table/examples/parse.md
@@ -1,4 +1,4 @@
-> 假设这是一段数据源:{{d.root}}/static/json/table/demo3.json
+> 假设这是一段数据源:/static/2.8/json/table/demo3.json
尽管它并不符合 table 组件默认规定的数据格式([#详见](#options-async-data)),但可以通过 parseData 回调将其进行转换。
@@ -11,7 +11,7 @@ layui.use('table', function(){
// 渲染
table.render({
elem: '#ID-table-demo-parse',
- url:'{{d.root}}/static/json/table/demo3.json',
+ url:'/static/2.8/json/table/demo3.json',
page: true,
response: {
statusCode: 200 // 重新规定成功的状态码为 200,table 组件默认为 0
diff --git a/docs/table/examples/search.md b/docs/table/examples/search.md
index f6621151..0db022a6 100644
--- a/docs/table/examples/search.md
+++ b/docs/table/examples/search.md
@@ -38,7 +38,7 @@ layui.use(function(){
// 创建表格实例
table.render({
elem: '#ID-table-demo-search',
- url: '{{d.root}}/static/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
+ url: '/static/2.8/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
cols: [[
{checkbox: true, fixed: true},
{field:'id', title: 'ID', width:80, sort: true, fixed: true},
diff --git a/docs/table/examples/setRowChecked.md b/docs/table/examples/setRowChecked.md
index 6ca9bc28..3b4bdc4e 100644
--- a/docs/table/examples/setRowChecked.md
+++ b/docs/table/examples/setRowChecked.md
@@ -13,7 +13,7 @@ layui.use('table', function(){
// 渲染
table.render({
elem: '#ID-table-demo-setRowChecked',
- url: '{{d.root}}/static/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
+ url: '/static/2.8/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
page: true,
cols: [[
{type: 'radio', fixed: 'left'},
diff --git a/docs/table/examples/templet.md b/docs/table/examples/templet.md
index c2112202..29c3aa01 100644
--- a/docs/table/examples/templet.md
+++ b/docs/table/examples/templet.md
@@ -27,7 +27,7 @@ layui.use(['table'], function(){
// 创建渲染实例
table.render({
elem: '#ID-table-demo-templet',
- url:'{{d.root}}/static/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
+ url:'/static/2.8/json/table/user.json', // 此处为静态模拟数据,实际使用时需换成真实接口
page: true,
height: '315px',
cols: [[
diff --git a/docs/table/examples/theads.md b/docs/table/examples/theads.md
index 09563fdf..0f328527 100644
--- a/docs/table/examples/theads.md
+++ b/docs/table/examples/theads.md
@@ -1,6 +1,6 @@
常用两级表头:
-
+
|
@@ -19,7 +19,7 @@
更多级表头(支持无限极):
-
+
联系人 |
diff --git a/docs/tree/detail/demo.md b/docs/tree/detail/demo.md
index 84a3ec1e..4d92bac2 100644
--- a/docs/tree/detail/demo.md
+++ b/docs/tree/detail/demo.md
@@ -19,7 +19,7 @@ layui.use(function(){
var util = layui.util;
// 模拟数据
- var data = [{title:'一级1',id:1,field:'name1',checked:true,spread:true,children:[{title:'二级1-1 可允许跳转',id:3,field:'name11',href:'{{d.root}}/',children:[{title:'三级1-1-3',id:23,field:'',children:[{title:'四级1-1-3-1',id:24,field:'',children:[{title:'五级1-1-3-1-1',id:30,field:''},{title:'五级1-1-3-1-2',id:31,field:''}]}]},{title:'三级1-1-1',id:7,field:'',children:[{title:'四级1-1-1-1 可允许跳转',id:15,field:'',href:'{{d.root}}/docs/'}]},{title:'三级1-1-2',id:8,field:'',children:[{title:'四级1-1-2-1',id:32,field:''}]}]},{title:'二级1-2',id:4,spread:true,children:[{title:'三级1-2-1',id:9,field:'',disabled:true},{title:'三级1-2-2',id:10,field:''}]},{title:'二级1-3',id:20,field:'',children:[{title:'三级1-3-1',id:21,field:''},{title:'三级1-3-2',id:22,field:''}]}]},{title:'一级2',id:2,field:'',spread:true,children:[{title:'二级2-1',id:5,field:'',spread:true,children:[{title:'三级2-1-1',id:11,field:''},{title:'三级2-1-2',id:12,field:''}]},{title:'二级2-2',id:6,field:'',children:[{title:'三级2-2-1',id:13,field:''},{title:'三级2-2-2',id:14,field:'',disabled:true}]}]},{title:'一级3',id:16,field:'',children:[{title:'二级3-1',id:17,field:'',fixed:true,children:[{title:'三级3-1-1',id:18,field:''},{title:'三级3-1-2',id:19,field:''}]},{title:'二级3-2',id:27,field:'',children:[{title:'三级3-2-1',id:28,field:''},{title:'三级3-2-2',id:29,field:''}]}]}];
+ var data = [{title:'一级1',id:1,field:'name1',checked:true,spread:true,children:[{title:'二级1-1 可允许跳转',id:3,field:'name11',href:'',children:[{title:'三级1-1-3',id:23,field:'',children:[{title:'四级1-1-3-1',id:24,field:'',children:[{title:'五级1-1-3-1-1',id:30,field:''},{title:'五级1-1-3-1-2',id:31,field:''}]}]},{title:'三级1-1-1',id:7,field:'',children:[{title:'四级1-1-1-1 可允许跳转',id:15,field:'',href:''}]},{title:'三级1-1-2',id:8,field:'',children:[{title:'四级1-1-2-1',id:32,field:''}]}]},{title:'二级1-2',id:4,spread:true,children:[{title:'三级1-2-1',id:9,field:'',disabled:true},{title:'三级1-2-2',id:10,field:''}]},{title:'二级1-3',id:20,field:'',children:[{title:'三级1-3-1',id:21,field:''},{title:'三级1-3-2',id:22,field:''}]}]},{title:'一级2',id:2,field:'',spread:true,children:[{title:'二级2-1',id:5,field:'',spread:true,children:[{title:'三级2-1-1',id:11,field:''},{title:'三级2-1-2',id:12,field:''}]},{title:'二级2-2',id:6,field:'',children:[{title:'三级2-2-1',id:13,field:''},{title:'三级2-2-2',id:14,field:'',disabled:true}]}]},{title:'一级3',id:16,field:'',children:[{title:'二级3-1',id:17,field:'',fixed:true,children:[{title:'三级3-1-1',id:18,field:''},{title:'三级3-1-2',id:19,field:''}]},{title:'二级3-2',id:27,field:'',children:[{title:'三级3-2-1',id:28,field:''},{title:'三级3-2-2',id:29,field:''}]}]}];
// 渲染
tree.render({
diff --git a/docs/treeTable/examples/demo.md b/docs/treeTable/examples/demo.md
index 770b2969..b8b542b2 100644
--- a/docs/treeTable/examples/demo.md
+++ b/docs/treeTable/examples/demo.md
@@ -24,13 +24,13 @@ layui.use(function(){
// 渲染
var inst = treeTable.render({
elem: '#ID-treeTable-demo',
- url: '{{d.root}}/static/json/treeTable/demo-1.json', // 此处为静态模拟数据,实际使用时需换成真实接口
+ url: '/static/2.8/json/treeTable/demo-1.json', // 此处为静态模拟数据,实际使用时需换成真实接口
tree: {
/*
// 异步加载子节点
async: {
enable: true,
- url: '{{d.root}}/static/json/treeTable/demo-async.json', // 此处为静态模拟数据,实际使用时需换成真实接口
+ url: '/static/2.8/json/treeTable/demo-async.json', // 此处为静态模拟数据,实际使用时需换成真实接口
autoParam: ["parentId=id"]
}
*/