国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

springboot bootcdn使用示例詳解

瀏覽:38日期:2023-02-18 08:20:36

應(yīng)用:直接使用bootcdn提供的靜態(tài)資源,不需要本地存儲(chǔ)

bootcdn 官網(wǎng):https://www.bootcdn.cn/

staticfile cdn官網(wǎng): http://www.staticfile.org/

常用靜態(tài)資源

# layui.jshttps://cdn.bootcdn.net/ajax/libs/layui/2.6.8/layui.jshttps://cdn.bootcdn.net/ajax/libs/layui/2.6.8/layui.min.js # layui.css//unpkg.com/layui@2.6.8/dist/css/layui.csshttps://www.layuicdn.com/layui-v2.6.8/css/layui.css # jqueryhttps://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.jshttps://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js # bootstraphttps://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.0.2/css/bootstrap-grid.csshttps://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.0.2/css/bootstrap-grid.min.css # reacthttps://cdn.bootcdn.net/ajax/libs/react-is/0.0.0-experimental-6f3fcbd6f-20210730/cjs/react-is.development.jshttps://cdn.bootcdn.net/ajax/libs/react-is/0.0.0-experimental-6f3fcbd6f-20210730/cjs/react-is.development.min.js # vuehttps://cdn.bootcdn.net/ajax/libs/vue/3.2.0-beta.7/vue.cjs.jshttps://cdn.bootcdn.net/ajax/libs/vue/3.2.0-beta.7/vue.cjs.min.js

*********************

示例

***************

配置文件

cdn.properties

layui=https://cdn.bootcdn.net/ajax/libs/layui/2.6.8/layui.min.jsjquery=https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js

***************

前端頁(yè)面

index.html

<!DOCTYPE html><html lang='en' xmlns:th='http://www.thymeleaf.org'><head> <meta charset='UTF-8'> <title>Title</title> <script th:src='http://www.intensediesel.com/bcjs/${application.jquery}'></script> <script th:src='http://www.intensediesel.com/bcjs/${application.layuijs}'></script> <link rel='stylesheet' th:href='http://www.intensediesel.com/bcjs/${application.layuicss}'> <!-- <script>$(function (){ $('#btn').click(function (){alert('hello world'); })}) </script>--> <script>layui.use(’layer’,function (){ var layer=layui.layer; $('#btn').click(function (){$('#1').html('瓜田李下<br>'); layer.msg(’hello’) })}) </script></head><body><div th:align='center'> <span style='background-color: purple;font-size: large'></span><br> <button class='layui-btn'>點(diǎn)擊一下</button></div></body></html>

*********************

到此這篇關(guān)于springboot bootcdn使用的文章就介紹到這了,更多相關(guān)springboot bootcdn內(nèi)容請(qǐng)搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!

標(biāo)簽: Spring
相關(guān)文章:
主站蜘蛛池模板: 长泰县| 聂拉木县| 五常市| 桐庐县| 白水县| 花垣县| 旺苍县| 景德镇市| 博客| 德阳市| 什邡市| 肇东市| 贡山| 凤山县| 措美县| 固始县| 托克托县| 富宁县| 阿拉善右旗| 镶黄旗| 睢宁县| 龙州县| 安阳县| 石林| 万盛区| 内丘县| 定日县| 郁南县| 曲水县| 五峰| 桂林市| 石柱| 隆林| 海安县| 岑溪市| 汉中市| 武夷山市| 大丰市| 乌拉特前旗| 宁明县| 徐闻县|