test: 更新示例外部资源 CDN 路径

2.x
贤心 2 months ago
parent 8ea9293b68
commit 18e01433a3

@ -141,8 +141,8 @@ code line
</pre> </pre>
<!-- 第三方语法高亮库 --> <!-- 第三方语法高亮库 -->
<script src="https://cdn.staticfile.net/highlight.js/11.8.0/highlight.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script src="https://cdn.staticfile.net/prism/1.29.0/prism.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
<!-- layui --> <!-- layui -->
<script src="../src/layui.js"></script> <script src="../src/layui.js"></script>
@ -157,17 +157,17 @@ layui.use(['code', 'dropdown'], function(){
// 高亮主题 css 库 // 高亮主题 css 库
var themeData = $.map([ var themeData = $.map([
// hljs 主题库 // hljs 主题库
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/vs2015.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/vs2015.min.css',
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/vs.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/vs.min.css',
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/github-dark.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github-dark.min.css',
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/github.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css',
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/base16/google-dark.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/base16/google-dark.min.css',
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/base16/google-light.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/base16/google-light.min.css',
'https://cdn.staticfile.net/highlight.js/11.8.0/styles/monokai-sublime.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/monokai-sublime.min.css',
'-', '-',
// prism 主题库 // prism 主题库
'https://cdn.staticfile.net/prism/1.29.0/themes/prism-dark.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-dark.min.css',
'https://cdn.staticfile.net/prism/1.29.0/themes/prism.min.css' 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css'
], function(v, index) { ], function(v, index) {
return { return {
title: v, title: v,

@ -370,7 +370,7 @@
<br><br><br> <br><br><br>
<script src="../src/layui.js" src1="https://cdn.staticfile.net/layui/2.6.8/layui.js"></script> <script src="../src/layui.js" src1="https://cdnjs.cloudflare.com/ajax/libs/layui/2.6.8/layui.js"></script>
<script> <script>
layui.use(['form', 'util', 'laydate'], function(){ layui.use(['form', 'util', 'laydate'], function(){

@ -52,7 +52,7 @@ var LAYUI_GLOBAL = {
<script src="../src/layui.js"></script> <script src="../src/layui.js"></script>
<!-- layer 独立版调试 --> <!-- layer 独立版调试 -->
<script src1="//cdn.staticfile.net/jquery/1.12.3/jquery.min.js"></script> <script src1="//cdnjs.cloudflare.com/ajax/libs/jquery/1.12.3/jquery.min.js"></script>
<script src1="../release/layer/src/layer.js"></script> <script src1="../release/layer/src/layer.js"></script>
<script> <script>

@ -20,8 +20,8 @@
<!-- 让IE8/9支持媒体查询从而兼容栅格 --> <!-- 让IE8/9支持媒体查询从而兼容栅格 -->
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="https://cdn.staticfile.net/html5shiv/r29/html5.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.net/respond.js/1.4.2/respond.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]--> <![endif]-->
<div class="layui-container"> <div class="layui-container">

@ -15,8 +15,8 @@ body{padding: 20px;}
<!-- 让IE8/9支持媒体查询从而兼容栅格 --> <!-- 让IE8/9支持媒体查询从而兼容栅格 -->
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="https://cdn.staticfile.net/html5shiv/r29/html5.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.net/respond.js/1.4.2/respond.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]--> <![endif]-->

@ -47,7 +47,7 @@
<table id="test3"></table> <table id="test3"></table>
<script src="../src/layui.js" src1="https://cdn.staticfile.net/layui/2.7.6/layui.js"></script> <script src="../src/layui.js" src1="https://cdnjs.cloudflare.com/ajax/libs/layui/2.7.6/layui.js"></script>
<script> <script>
layui.use(['table', 'laydate'], function () { layui.use(['table', 'laydate'], function () {
var $ = layui.$; var $ = layui.$;

@ -147,7 +147,7 @@
</table> </table>
</div> </div>
<script src="../src/layui.js" src1="https://cdn.staticfile.net/layui/2.7.6/layui.js"></script> <script src="../src/layui.js" src1="https://cdnjs.cloudflare.com/ajax/libs/layui/2.7.6/layui.js"></script>
<script> <script>
layui.use('table', function(){ layui.use('table', function(){
var $ = layui.$; var $ = layui.$;

@ -6,7 +6,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title> <title>Document</title>
<link rel="stylesheet" href="../src/css/layui.css" href2="//cdn.staticfile.net/layui/2.9.6/css/layui.css" <link rel="stylesheet" href="../src/css/layui.css" href2="//cdnjs.cloudflare.com/ajax/libs/layui/2.9.6/css/layui.css"
href3="https://cdn.jsdelivr.net/gh/layui/layui@879a9c629cc832f5b235d138adf164d74c34991b/src/css/layui.css" /> href3="https://cdn.jsdelivr.net/gh/layui/layui@879a9c629cc832f5b235d138adf164d74c34991b/src/css/layui.css" />
</head> </head>
@ -17,7 +17,7 @@
<table id="demo"></table> <table id="demo"></table>
</div> </div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Mock.js/1.0.0/mock-min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/Mock.js/1.0.0/mock-min.js"></script>
<script src="../src/layui.js" src1="//cdn.staticfile.net/layui/2.9.7/layui.js" <script src="../src/layui.js" src1="//cdnjs.cloudflare.com/ajax/libs/layui/2.9.7/layui.js"
src1="https://cdn.jsdelivr.net/gh/layui/layui@879a9c629cc832f5b235d138adf164d74c34991b/src/layui.js"></script> src1="https://cdn.jsdelivr.net/gh/layui/layui@879a9c629cc832f5b235d138adf164d74c34991b/src/layui.js"></script>
<script> <script>
layui.use(["treeTable", "util"], function () { layui.use(["treeTable", "util"], function () {

@ -7,7 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title> <title>Document</title>
<link rel="stylesheet" href="../src/css/layui.css" href2="//cdn.staticfile.net/layui/2.9.6/css/layui.css" /> <link rel="stylesheet" href="../src/css/layui.css" href2="//cdnjs.cloudflare.com/ajax/libs/layui/2.9.6/css/layui.css" />
</head> </head>
<body> <body>
@ -83,7 +83,7 @@
{{# }); }} {{# }); }}
</select> </select>
</script> </script>
<script src="../src/layui.js" src1="//cdn.staticfile.net/layui/2.9.9/layui.js"></script> <script src="../src/layui.js" src1="//cdnjs.cloudflare.com/ajax/libs/layui/2.9.9/layui.js"></script>
<script> <script>
layui.use(["jquery", "treeTable", "form"], function () { layui.use(["jquery", "treeTable", "form"], function () {
var $ = layui.jquery; var $ = layui.jquery;

@ -141,7 +141,7 @@ layui.use(['treeTable', 'dropdown', 'layer'], function(){
</script> </script>
<script src="https://cdn.staticfile.net/Mock.js/1.0.0/mock-min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/Mock.js/1.0.0/mock-min.js"></script>
<script> <script>
// 生成模拟数据 // 生成模拟数据
const createData = (flat) => { const createData = (flat) => {

@ -88,7 +88,7 @@ hr{margin: 32px 0;}
绑定原始文件域:<input type="file" name="file" id="test9"> 绑定原始文件域:<input type="file" name="file" id="test9">
<script src="../src/layui.js" src1="https://cdn.staticfile.net/layui/2.7.6/layui.js"></script> <script src="../src/layui.js" src1="https://cdnjs.cloudflare.com/ajax/libs/layui/2.7.6/layui.js"></script>
<script> <script>
layui.use(['upload', 'element', 'form'], function(){ layui.use(['upload', 'element', 'form'], function(){
var $ = layui.$; var $ = layui.$;

Loading…
Cancel
Save