10 2022 档案
摘要:元素高度一定,多了后不能增加高度,只能横向滚动 用@media做媒体查询修改元素宽度能实现,但是屏幕放大,一些较为极端的情况下还是需要滚动 <!-- 父元素样式 --> <div class="father"> <div class="child"></div> </div> .father { w
阅读全文
摘要:// vue2 computed: { fullName() { return this.firstName + this.lastName; } } // 传参 computed: { fullName() { return (params) => { } } } // vue3 const ne
阅读全文
摘要:// 处理精度问题,有小数点保留两位,没有取整数值 priceFilter(val) { val = Math.round(val * 100) / 100 const valStr = val.toString() if (valStr.indexOf('.') -1) return Number
阅读全文