摘要: function toZhDigit(digit) { digit = typeof digit "number" ? String(digit) : digit; const zh = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"]; cons 阅读全文
posted @ 2023-10-08 13:55 web格调 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 树结构转数组const listTree = [ { id: 1, name: '部门1', pid: 0, children: [ { id: 2, name: '部门1-1', pid: 1, children: [ { id: 4, name: '部门1-1-1', pid: 2, child 阅读全文
posted @ 2023-09-20 15:00 web格调 阅读(16) 评论(0) 推荐(0) 编辑
摘要: location.href = res.file_url H5下载 阅读全文
posted @ 2023-09-16 17:13 web格调 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 解决方法: git清除本地缓存(改变成未track状态),然后再提交: git rm -r --cached . git add . git commit -m 'update .gitignore' git push -u origin master 阅读全文
posted @ 2023-08-30 10:17 web格调 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 1、Auto Close Tag 自动闭合标签 2、Auto Close Tag 自动重命名标签 3、background-cover 设置vscode背景图片 4、Git Graph 提交视图层 5、Git History 历史记录 6、Prettier - Code formatter 设置格式 阅读全文
posted @ 2023-07-24 16:55 web格调 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 1、查看是否使用代理 config --global http.proxy 会显示是否使用代理 2、取消代理 git config --global --unset http.proxy 3、再次执行查看代理 4、需要再次启动才可以生效 阅读全文
posted @ 2023-07-24 16:39 web格调 阅读(281) 评论(0) 推荐(0) 编辑
摘要: { "Print to console": { "prefix": "uni", //写成自己满意的前缀(name) "body": [ "<template>", " <view>$0</view>", "</template>", "", "<script>", "export default  阅读全文
posted @ 2023-06-28 15:22 web格调 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 画板生成海报图 ```js ``` 网络生成的图片需要使用 promose进行一下异步处理这样可以方式因为异步问题造成海报无法生成 ``` getImageInfo(image) { return new Promise((req, rej) => { uni.getImageInfo({ src: 阅读全文
posted @ 2023-06-13 14:14 web格调 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 弹性布局 | 属性 | 说明 | | | : | | display | 指定html元素设置flex(弹性布局) | | flex-direction | 指定弹性盒子排列方式横/竖 | | flex-wrap | 控制是否换行 | | flex-flow | flex-direction 和 f 阅读全文
posted @ 2023-05-07 17:11 web格调 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 一、在页面pages.json设置tabBar 这样我们在uniapp里面才可以进行tabbar的跳转 二、要对默认的隐藏设置需要对页面的生命周期设置 在对应的默认tabBar页面里面设置进行隐藏tabbar uni.hideTabBar() 三、就是使用我们自己的tabbar组件喽 阅读全文
posted @ 2023-05-06 16:34 web格调 阅读(1331) 评论(0) 推荐(0) 编辑