上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 获取token的方式,请阅读https://blog.csdn.net/weixin_41010198/article/details/119698015 设置提交仓库地址的方式参考: git remote set-url origin https://<your_token>@github.com 阅读全文
posted @ 2021-08-16 20:29 衔石 阅读(1354) 评论(0) 推荐(0)
摘要: js 将用连接符连接的英文字符串转换成驼峰命名 1 // transformStr3('edsp-log-ui-test') // "edspLogUiTest" 2 function transformStr3(str) { 3 var re = /-(\w)/g; 4 return str.re 阅读全文
posted @ 2021-08-11 14:11 衔石 阅读(447) 评论(0) 推荐(0)
摘要: // Scrollbars .no-overlay-scrollbar { ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar:hover { height: 8px; } ::-webkit-scrollbar- 阅读全文
posted @ 2021-07-26 11:32 衔石 阅读(1076) 评论(0) 推荐(0)
摘要: // Slightly modified, but without dependancies: // https://raw.githubusercontent.com/malte-wessel/react-custom-scrollbars/master/src/utils/getScrollba 阅读全文
posted @ 2021-07-26 11:28 衔石 阅读(91) 评论(0) 推荐(0)
摘要: 参考原文:https://segmentfault.com/a/1190000014301657 找到 your-project/package.json下关于webpack-dev-server的配置: 比如: "dev": "webpack-dev-server --inline --progr 阅读全文
posted @ 2021-07-23 10:51 衔石 阅读(612) 评论(0) 推荐(0)
摘要: let scrollbarWidth: number | null = null; export function getScrollbarWidth() { if (scrollbarWidth !== null) { return scrollbarWidth; } if (typeof doc 阅读全文
posted @ 2021-07-07 15:56 衔石 阅读(619) 评论(0) 推荐(0)
摘要: /** * [camelCaseToHyphen 将驼峰命名转换为连字符] * @param {[string]} str [驼峰命名的字符串] * @return {[string]} [连字符的字符串] */ export function camelCaseToHyphen (str) { r 阅读全文
posted @ 2021-07-06 15:40 衔石 阅读(253) 评论(0) 推荐(0)
摘要: 方法一:使用new Set()的方法 const arr= Array.from(new Set([1,2,3,4,2,1])) // [1,2,3,4] 方法二:使用filter的方法 const arrFilter= [1,2,4,2,1] .filter(function onlyUnique 阅读全文
posted @ 2021-07-05 11:19 衔石 阅读(48) 评论(0) 推荐(0)
摘要: // 将数字转化成kw单位 export function formatNumber(num) { return num >= 1e3 && num < 1e4 ? (num / 1e3).toFixed(1) + 'k' : num >= 1e4 ? (num / 1e4).toFixed(1) 阅读全文
posted @ 2021-06-23 17:25 衔石 阅读(651) 评论(0) 推荐(0)
摘要: 将插件在目标项目中联调 在插件项目根目录下执行 yarn link 成功后,在目标项目根目录下执行: yarn link 插件名(package.json中的name) 在目标项目的 webpack.base.conf.js中修改如下两处配置: resolve: { ... symlinks: fa 阅读全文
posted @ 2021-06-01 11:30 衔石 阅读(670) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 8 下一页