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

This commit is contained in:
贤心 2024-10-09 00:29:16 +08:00
parent 8ea9293b68
commit 18e01433a3
11 changed files with 25 additions and 25 deletions

View File

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

View File

@ -370,7 +370,7 @@
<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>
layui.use(['form', 'util', 'laydate'], function(){

View File

@ -52,7 +52,7 @@ var LAYUI_GLOBAL = {
<script src="../src/layui.js"></script>
<!-- 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>

View File

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

View File

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

View File

@ -47,7 +47,7 @@
<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>
layui.use(['table', 'laydate'], function () {
var $ = layui.$;

View File

@ -147,7 +147,7 @@
</table>
</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>
layui.use('table', function(){
var $ = layui.$;

View File

@ -6,7 +6,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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" />
</head>
@ -17,7 +17,7 @@
<table id="demo"></table>
</div>
<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>
<script>
layui.use(["treeTable", "util"], function () {

View File

@ -7,7 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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>
<body>
@ -83,7 +83,7 @@
{{# }); }}
</select>
</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>
layui.use(["jquery", "treeTable", "form"], function () {
var $ = layui.jquery;

View File

@ -141,7 +141,7 @@ layui.use(['treeTable', 'dropdown', 'layer'], function(){
</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>
// 生成模拟数据
const createData = (flat) => {

View File

@ -88,7 +88,7 @@ hr{margin: 32px 0;}
绑定原始文件域:<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>
layui.use(['upload', 'element', 'form'], function(){
var $ = layui.$;