摘要: 安装 1. 安装并创建配置文件 //npm: npm install -D @commitlint/cli @commitlint/config-conventional //yarn: yarn add -D @commitlint/cli @commitlint/config-conventio 阅读全文
posted @ 2025-09-29 09:46 justsilky 阅读(18) 评论(0) 推荐(0)
摘要: 1. 安装tailwindcss依赖 yarn add tailwindcss @tailwindcss/vite 2.新建css文件引入tailwindcss //assets/styles/tailwind.css @import 'tailwindcss'; 3.main.js引入css文件 阅读全文
posted @ 2025-09-24 10:10 justsilky 阅读(92) 评论(0) 推荐(0)
摘要: 转自 https://www.cnblogs.com/riokai/p/4452088.html Sublime添加TypeScript编译功能的方式是:打开Sublime Text -> Tools(工具) -> Build System(编译系统) -> New Build System(新编译 阅读全文
posted @ 2020-07-31 17:13 justsilky 阅读(225) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/8300a5ec6480 阅读全文
posted @ 2020-07-23 14:32 justsilky 阅读(169) 评论(0) 推荐(0)
摘要: // 禁止保存,拖拽图片 var imgs = $("img"); imgs.on("contextmenu", function() { return false; }); imgs.on("dragstart", function() { return false; }); // 禁止非开发人员 阅读全文
posted @ 2020-07-22 18:16 justsilky 阅读(325) 评论(0) 推荐(0)
摘要: http://www.clipboardjs.cn/ 阅读全文
posted @ 2020-07-20 13:50 justsilky 阅读(134) 评论(0) 推荐(0)
摘要: 原博 https://www.cnblogs.com/IT-study/p/11169501.html 阅读全文
posted @ 2020-06-30 14:33 justsilky 阅读(1597) 评论(0) 推荐(0)
摘要: 原文 https://www.cnblogs.com/woaixuexi9999/p/9247705.html 阅读全文
posted @ 2020-06-09 13:54 justsilky 阅读(260) 评论(0) 推荐(0)
摘要: 转自:https://www.cnblogs.com/yugege/p/6526215.html#!comments function getRareChar(str) { let hash = {}; // 将各个字符名字、首次出现位置及出现次数存到hash表 for(let i = 0, len 阅读全文
posted @ 2020-05-21 14:09 justsilky 阅读(698) 评论(0) 推荐(0)
摘要: 转自:https://www.cnblogs.com/embrace-ly/p/10693035.html 方法一:递归 let cloneObj = function(obj){ let str, newobj = obj.constructor Array ? [] : {}; if(typeo 阅读全文
posted @ 2020-05-20 18:04 justsilky 阅读(170) 评论(0) 推荐(0)