更新 docs 中的引入资源

pull/1433/head
贤心 1 year ago
parent 868c945943
commit c2aea60df3

@ -137,7 +137,7 @@ toc: true
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{= d.layui.cdn.css }}" rel="stylesheet">
<link href="{{= d.layui[2].cdn.css }}" rel="stylesheet">
</head>
<body>
<div class="layui-text" style="padding: 16px;">

@ -8,14 +8,14 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{= d.layui.cdn.css }}" rel="stylesheet">
<link href="{{= d.layui[2].cdn.css }}" rel="stylesheet">
</head>
<body>
<div id="target-test" style="position: relative; padding: 16px;">
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</div>
<script src="{{= d.layui.cdn.js }}"></script>
<script src="{{= d.layui[2].cdn.js }}"></script>
<script>
layui.use(function(){
var util = layui.util;
@ -66,4 +66,4 @@ layui.use(function(){
</body>
</html>
</textarea>
</pre>
</pre>

@ -70,11 +70,11 @@ npm i layui
```
<!-- 引入 layui.css -->
<link href="//unpkg.com/layui@{{= d.layui.v }}/dist/css/layui.css" rel="stylesheet">
<link href="//unpkg.com/layui@{{= d.layui[2].v }}/dist/css/layui.css" rel="stylesheet">
```
```
<!-- 引入 layui.js -->
<script src="//unpkg.com/layui@{{= d.layui.v }}/dist/layui.js"></script>
<script src="//unpkg.com/layui@{{= d.layui[2].v }}/dist/layui.js"></script>
```
<h2 id="quickstart" lay-toc="{}">快速上手</h2>
@ -89,11 +89,11 @@ npm i layui
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Quick Start - Layui</title>
<link href="{{= d.layui.cdn.css }}" rel="stylesheet">
<link href="{{= d.layui[2].cdn.css }}" rel="stylesheet">
</head>
<body>
<!-- HTML Content -->
<script src="{{= d.layui.cdn.js }}"></script>
<script src="{{= d.layui[2].cdn.js }}"></script>
<script>
// Usage
layui.use(function(){

@ -19,7 +19,7 @@ toc: true
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{= d.layui.cdn.css }}" rel="stylesheet">
<link href="{{= d.layui[2].cdn.css }}" rel="stylesheet">
</head>
<body>
<div class="layui-layout layui-layout-admin">
@ -111,7 +111,7 @@ toc: true
</div>
</div>
<script src="{{= d.layui.cdn.js }}"></script>
<script src="{{= d.layui[2].cdn.js }}"></script>
<script>
//JS
layui.use(['element', 'layer', 'util'], function(){

@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{= d.layui.cdn.css }}" rel="stylesheet">
<link href="{{= d.layui[2].cdn.css }}" rel="stylesheet">
</head>
<body class="layui-bg-gray">
<div class="layui-panel" style="width: 260px; margin: 16px;">
@ -97,7 +97,7 @@
</ul>
</div>
<script src="{{= d.layui.cdn.js }}"></script>
<script src="{{= d.layui[2].cdn.js }}"></script>
<script>
layui.use(function(){
var dropdown = layui.dropdown;
@ -114,4 +114,4 @@ layui.use(function(){
});
</script>
</body>
</html>
</html>

@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{= d.layui.cdn.css }}" rel="stylesheet">
<link href="{{= d.layui[2].cdn.css }}" rel="stylesheet">
</head>
<body>
<ul class="layui-nav layui-nav-tree layui-nav-side">
@ -31,7 +31,7 @@
<li class="layui-nav-item"><a href="javascript:;">菜单3</a></li>
</ul>
<script src="{{= d.layui.cdn.js }}"></script>
<script src="{{= d.layui[2].cdn.js }}"></script>
<script>
layui.use(function(){
var element = layui.element;
@ -39,4 +39,4 @@ layui.use(function(){
});
</script>
</body>
</html>
</html>

@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{= d.layui.cdn.css }}" rel="stylesheet">
<link href="{{= d.layui[2].cdn.css }}" rel="stylesheet">
<style>
/* 自定义样式 */
.layui-table-testcss .layui-table-header,
@ -40,7 +40,7 @@
</div>
!}}</script>
<script src="{{= d.layui.cdn.js }}"></script>
<script src="{{= d.layui[2].cdn.js }}"></script>
<script>
layui.use(['table'], function(){
var table = layui.table;

@ -6,7 +6,7 @@
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{= d.layui.cdn.css }}" rel="stylesheet">
<link href="{{= d.layui[2].cdn.css }}" rel="stylesheet">
</head>
<body>
<!--
@ -46,7 +46,7 @@
</div>
</script>
<script src="{{= d.layui.cdn.js }}"></script>
<script src="{{= d.layui[2].cdn.js }}"></script>
<script>
layui.use(['table', 'dropdown'], function(){
var table = layui.table;

Loading…
Cancel
Save