会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
柏zhouzhou
博客园
首页
新随笔
联系
管理
订阅
2022年2月24日
windows10本地配置域名和ip
摘要: 1.找到c盘下的文件夹 2.找到host文件 配置本地映射 3.在vue.config.js文件中配置别名 4.重新启动项目
阅读全文
posted @ 2022-02-24 10:54 柏zhouzhou
阅读(804)
评论(0)
推荐(0)
2022年1月25日
不给最后一个元素加边框
摘要: .item { height: 100%; text-align: center; flex: 1; position: relative; &:not(:last-child)::after { content: ''; position: absolute; right: 20px; botto
阅读全文
posted @ 2022-01-25 15:37 柏zhouzhou
阅读(69)
评论(0)
推荐(0)
2022年1月7日
神策埋点
摘要: https://manual.sensorsdata.cn/sa/latest/tech_sdk_client_web-7548149.html
阅读全文
posted @ 2022-01-07 15:46 柏zhouzhou
阅读(38)
评论(0)
推荐(0)
2021年12月14日
vue3 setup
摘要: 1. setup函数式组合api的入口 2.组合api中不需要使用this,不能使用this setup(){ // 数据 let name ='张三' let age =18 let data1={ url:'https://www.baidu.com/' } // 方法 function say
阅读全文
posted @ 2021-12-14 16:49 柏zhouzhou
阅读(133)
评论(0)
推荐(0)
2021年12月2日
强制覆盖本地代码:
摘要: git fetch --all git reset --hard origin/master git pull
阅读全文
posted @ 2021-12-02 16:48 柏zhouzhou
阅读(29)
评论(0)
推荐(0)
2021年9月15日
SyntaxError: Unexpected token 'export' 报错
摘要: 1.使用 export default 报错 SyntaxError: Unexpected token 'export' export default { title: '人资', fixedHeader: false, sidebarLogo: true // 显示logo } 2.引入到js文
阅读全文
posted @ 2021-09-15 13:56 柏zhouzhou
阅读(9881)
评论(0)
推荐(0)
uniapp下拉加载
摘要: 1 如果后端接口没有做分页处理,就会一次性获取到所有数据,那么页面初次渲染的速度就会很慢。可以在数据渲染的时候做上拉加载的处理,也是有效果的。 data() { return { junhongzixunList: [], isFirstList: [], e: 1, }; } onShow() {
阅读全文
posted @ 2021-09-15 00:00 柏zhouzhou
阅读(522)
评论(0)
推荐(1)
2021年9月6日
小程序页面跳转
摘要: wx.navigateTo 用于保留当前页面、跳转到应用内的某个页面,使用 wx.navigateBack可以返回到原页面。对于页面不是特别多的小程序,通常推荐使用 wx.navigateTo进行跳转, 以便返回原页面,以提高加载速度。当页面特别多时,则不推荐使用。 wx.redirectTo 当页
阅读全文
posted @ 2021-09-06 11:25 柏zhouzhou
阅读(109)
评论(0)
推荐(0)
2021年8月30日
px不转成rem
摘要: #box { height: 44px //用postcss-px2rem插件配置后相当于0.44rem width: 100% font-size: 24px;/*no*/ //如果不想用插件转换可以用/*no*/标识符}
阅读全文
posted @ 2021-08-30 11:43 柏zhouzhou
阅读(350)
评论(0)
推荐(0)
2021年8月26日
小程序表单校验
摘要: 点击保存的按钮的功能函数: save(){ const Rexp = balabala...(正则表达式,我忘了咋写的了) //如果判断是否为空,这样写 if(name = ''){ wx.showToast({ title: '请输入就诊人姓名', icon:'none', }) } 如果判断是否
阅读全文
posted @ 2021-08-26 17:55 柏zhouzhou
阅读(126)
评论(0)
推荐(0)
公告