Browse Source

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

2.x
贤心 1 month ago
parent
commit
18e01433a3
  1. 22
      examples/code.html
  2. 2
      examples/form.html
  3. 2
      examples/layer.html
  4. 4
      examples/layout-grid.html
  5. 4
      examples/responsive.html
  6. 2
      examples/table-test-border.html
  7. 2
      examples/table.html
  8. 4
      examples/treeTable-async.html
  9. 4
      examples/treeTable-crud.html
  10. 2
      examples/treeTable.html
  11. 2
      examples/upload.html

22
examples/code.html

@ -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,

2
examples/form.html

@ -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(){

2
examples/layer.html

@ -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>

4
examples/layout-grid.html

@ -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">

4
examples/responsive.html

@ -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]-->

2
examples/table-test-border.html

@ -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.$;

2
examples/table.html

@ -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.$;

4
examples/treeTable-async.html

@ -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 () {

4
examples/treeTable-crud.html

@ -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;

2
examples/treeTable.html

@ -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) => {

2
examples/upload.html

@ -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.$;

Loading…
Cancel
Save