会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
牵你不解释
博客园
首页
新随笔
联系
订阅
管理
1
2
下一页
2024年10月17日
pdf.js Error: Setting up fake worker failed: "Failed to fetch dynamically imported module
摘要: 本人使用最新pdfjs-dist@4.7.76,环境为vue3+vite5 pdfjs.GlobalWorkerOptions.workerSrc主要是接受字符串,需要一個獲取pdf.worker.min.mjs的地址 最後解決代碼: import * as pdfjs from 'pdfjs-di
阅读全文
posted @ 2024-10-17 16:20 牵你不解释
阅读(2172)
评论(0)
推荐(0)
2024年4月3日
Vue3+vite打包Failed to load module script
摘要: 完整報錯信息: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type c
阅读全文
posted @ 2024-04-03 17:29 牵你不解释
阅读(978)
评论(0)
推荐(0)
2023年1月30日
javaScript一个数组对象根据另一个数组排序
摘要: var list = [ {name:'上海',code:'shanghai',}, {name:'西安', code:'xian'}, {name:'深圳', code:'shenzhen'}, {name:'北京', code:'beijing'} ]; list.sort((a,b)=>{ l
阅读全文
posted @ 2023-01-30 17:57 牵你不解释
阅读(397)
评论(0)
推荐(0)
2022年12月2日
css实现Tooltip文字提示
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv
阅读全文
posted @ 2022-12-02 11:47 牵你不解释
阅读(573)
评论(0)
推荐(0)
2022年8月10日
docker安装mariadb
摘要: 1. docker pull mariadb 下载docker镜像 2. mkdir -p /home/data/mariadb 建一个目录作为和容器的映射目录 3. docker run --name mariadb -p 3306:3306 -e MYSQL_ROOT_PASSWORD=1234
阅读全文
posted @ 2022-08-10 11:22 牵你不解释
阅读(741)
评论(0)
推荐(1)
2022年3月10日
docker删除所有镜像
摘要: 1.停用全部运行中的容器:docker stop $(docker ps -q) 2.删除全部容器:docker rm $(docker ps -aq) 3、删除所有镜像docker rmi -f $(docker images -qa)
阅读全文
posted @ 2022-03-10 15:11 牵你不解释
阅读(5128)
评论(0)
推荐(1)
2021年9月22日
Java 实现方法,截取域名
摘要: 1 public class Test { 2 public static void main(String[] args) { 3 String n1 = getName("www.baidu.com"); 4 String n2 = getName("http://doc.canglaoshi.
阅读全文
posted @ 2021-09-22 20:50 牵你不解释
阅读(1327)
评论(0)
推荐(0)
substring 截取当前字符串中指定范围内的字符串.
摘要: 1 /** 2 * String substring(int start,int end) 3 * 截取当前字符串中指定范围内的字符串. 4 * 两个参数分别表示开始位置和结束位置. 5 * 注:在JAVA API中有一个特点,通常使用两个数字表示范围时都是"含头不含尾"的. 6 * 即:包含开始位
阅读全文
posted @ 2021-09-22 20:47 牵你不解释
阅读(555)
评论(0)
推荐(0)
StringBuilder 增,删,改,插等操作
摘要: 1 public class StringBuilderDemo { 2 public static void main(String[] args) { 3 String line = "好好学习java"; 4 5 /* 6 StringBuilder与StringBuffer的功能是完全一样的
阅读全文
posted @ 2021-09-22 20:44 牵你不解释
阅读(381)
评论(0)
推荐(0)
startsWith和endsWith判断字符串是否是以给定的内容开始或结束的
摘要: 1 /** 2 * boolean startsWith(String str) 3 * boolean endsWith(String str) 4 * 判断字符串是否是以给定的内容开始或结束的 5 * 6 */ 7 public class StartsWithDemo { 8 public s
阅读全文
posted @ 2021-09-22 20:39 牵你不解释
阅读(80)
评论(0)
推荐(0)
1
2
下一页
公告