博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2024年4月30日

摘要: less 阅读全文

posted @ 2024-04-30 17:39 学以致用的人 阅读(1) 评论(0) 推荐(0) 编辑

2024年3月27日

摘要: goLocation(){ // #ifdef H5 if (Function.isWechat()){ jWeixin.jWeixinOpenLocation({ latitude: parseFloat(this.newData.lat), // 纬度,浮点数,范围为90 ~ -90 longi 阅读全文

posted @ 2024-03-27 17:13 学以致用的人 阅读(1) 评论(0) 推荐(0) 编辑

2023年12月4日

摘要: <tr > <td style="vertical-align: middle;"> <div> 内容 </div> </td> <td style="vertical-align: middle;"> <div> 内容 </div> </td> </tr > 只需要在td上加 vertical-a 阅读全文

posted @ 2023-12-04 17:47 学以致用的人 阅读(2) 评论(0) 推荐(0) 编辑

2023年10月8日

摘要: 后端 $this->assign('info',$expert); 如果是数组/对象,需要在接收页面这样写: 在data内变量赋值: info: <?php echo json_encode($info);?> 另外有其他写法: $this->assign('info',1); 如果是单个值: 在d 阅读全文

posted @ 2023-10-08 17:15 学以致用的人 阅读(46) 评论(0) 推荐(0) 编辑

2023年9月11日

摘要: 可以使用this.$set()来进行强制更新,进而解决问题 对象操作: 三个参数:this.$set("改变的对象","改变的对象属性","值") 数组操作: 三个参数:this.$set("数组","下标","值") 阅读全文

posted @ 2023-09-11 15:12 学以致用的人 阅读(101) 评论(0) 推荐(0) 编辑

2023年8月30日

摘要: 必须同时添加stop和destory 只使用其中一个无法停止和销毁 阅读全文

posted @ 2023-08-30 17:31 学以致用的人 阅读(195) 评论(0) 推荐(0) 编辑

2023年8月15日

摘要: 同学试过使用生命周期等方式都不能清除计时器;因而改用这个方法; 1,首先vue页面上随便写个有高度的div如下:用refs获取高度 <div class="hub-fixed-box" :style="{width:fixedWidth+'px' }" ref="fixedTop"></div> 2 阅读全文

posted @ 2023-08-15 20:48 学以致用的人 阅读(180) 评论(0) 推荐(0) 编辑

2023年6月9日

摘要: ::-webkit-scrollbar { width: 6px; background-color: rgba(255, 255, 255, 0.5); }::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgb(0 0 0 阅读全文

posted @ 2023-06-09 15:58 学以致用的人 阅读(1) 评论(0) 推荐(0) 编辑

摘要: aspect-ratio (方向-比例) aspect-ratio: auto 5 / 3 width:100% //通过给定宽度,使用aspect-rotio 设置比例,拥有此属性的元素可按照比例缩放此元素。 代码实现: img{ width: 100%; height: 100%; object 阅读全文

posted @ 2023-06-09 10:25 学以致用的人 阅读(12) 评论(0) 推荐(0) 编辑

2023年4月3日

摘要: <div class="layui-row layui-col-space15" id="app"></div> 定义vueApp: let vueApp require(['vue'],function(Vue) { vueApp=new Vue({ el: "#app", data: { whe 阅读全文

posted @ 2023-04-03 10:53 学以致用的人 阅读(337) 评论(0) 推荐(0) 编辑