会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
伟笑
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
11
下一页
2023年7月8日
增加千分号,整数自动补零,小数保留两位且不四舍五入
摘要: function semicolon_Add(num){ num = num.replace(/,/g,""); if (num != ""){ var re = /^\d+(\.\d+)?$/; if(re.test(num)){ var parts = num.toString().split(
阅读全文
posted @ 2023-07-08 14:49 伟笑
阅读(27)
评论(0)
推荐(0)
2023年7月7日
保留小数点n位且整数自动补零
摘要: /** * 保留小数点n位且整数自动补零 * */ pointFloor(num, n) { if (typeof(num) == 'number' || typeof(num) == 'string') { let numStr = num + ""; let list = numStr.spli
阅读全文
posted @ 2023-07-07 21:15 伟笑
阅读(25)
评论(0)
推荐(0)
2023年6月25日
git 提交时忽略eslint校验
摘要: git commit --no-verify -m "信息汇总页面样式"
阅读全文
posted @ 2023-06-25 11:02 伟笑
阅读(449)
评论(0)
推荐(0)
2023年5月29日
解决git 远程删除分支之后,vscode本地分支列表没有更新问题
摘要: 执行命令 git fetch --prune
阅读全文
posted @ 2023-05-29 15:19 伟笑
阅读(201)
评论(0)
推荐(0)
2023年4月27日
js 获取对象的key value,放到数组对象中
摘要: let arr = []; if (res.data && res.data.havePowerComCodes) { for (const [key, value] of Object.entries(res.data.havePowerComCodes)) { const obj = { lab
阅读全文
posted @ 2023-04-27 13:37 伟笑
阅读(745)
评论(0)
推荐(0)
2023年4月26日
修改文件名大小写"造成的git上传文件丢失
摘要: 1、查看是否忽略大小写 git config core.ignorecase true 为忽略大小写 false 为不忽略大小写 2、运行 git config core.ignorecase false,关闭 git 忽略大小写配置
阅读全文
posted @ 2023-04-26 17:54 伟笑
阅读(119)
评论(0)
推荐(0)
2021年3月12日
Vue.js实现checkbox的全选和反选
摘要: 1、HTML <template> <div> <input type='checkbox' class='input-checkbox' v-model='checked' v-on:click='checkedAll'>全选 <template v-for='checkb in checkbox
阅读全文
posted @ 2021-03-12 11:42 伟笑
阅读(330)
评论(0)
推荐(0)
2021年3月5日
sticky-footer 页脚块粘贴在视窗底部
摘要: 参考:https://www.cnblogs.com/shicongbuct/p/6487122.html
阅读全文
posted @ 2021-03-05 11:24 伟笑
阅读(46)
评论(0)
推荐(0)
2021年2月3日
echarts 给省份地图区块不同颜色
摘要: 代码: <template> <div id="app"> <div @click="initMap" id="main"></div> <div @click="reLoad" class="re-load"> <i class="el-icon-refresh-right"></i> </div
阅读全文
posted @ 2021-02-03 18:07 伟笑
阅读(5344)
评论(0)
推荐(1)
vue-amap 圈出某个省份轮廓图 覆盖其他区域
摘要: 代码: <template> <div class="amapBox"> <el-amap class="amap-box" :vid="'hunan-amap'" :plugin="plugin" :center="mapCenter" :events="events" ref="map" :am
阅读全文
posted @ 2021-02-03 10:14 伟笑
阅读(985)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
11
下一页
公告