你瞅啥呢
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 44 下一页
摘要: 直接看代码: // 获取屏幕高度 uni.getSystemInfo({ success: function (res) { this.screHeight = res.screenHeight; } }); 这个变量screHeight没有被赋值,拿到的还是我设置的初始值。 原因:this指向的作 阅读全文
posted @ 2023-06-21 09:36 叶乘风 阅读(269) 评论(0) 推荐(0)
摘要: 前言:小程序代码运行在新电脑,连hbuilderx和微信开发者工具都是新的,报错:[微信小程序开发者工具] ? Enable IDE Service (y/N) 。 原因:hbuilderx无法启动微信开发者工具,再具体点是因为微信开发者工具的服务端口号没有打开。 解决方案:打开 阅读全文
posted @ 2023-06-20 22:01 叶乘风 阅读(4644) 评论(0) 推荐(0)
摘要: 前言:把博客拉到到新电脑,运行hexo s报错如下: PS D:\ablog> hexo s ERROR Cannot find module 'hexo' from 'D:\ablog' ERROR Local hexo loading failed in D:\ablog ERROR Try r 阅读全文
posted @ 2023-06-20 20:16 叶乘风 阅读(653) 评论(0) 推荐(0)
摘要: 前言:项目中引用了uni-data-picker插件,其官方代码如下: <uni-data-picker placeholder="请选择地址" popup-title="请选择城市" c ollection="opendb-city-china" field="code as value, nam 阅读全文
posted @ 2023-06-20 15:26 叶乘风 阅读(1859) 评论(0) 推荐(0)
摘要: 前言:uniapp项目报错:[system] TypeError: Cannot use 'in' operator to search for 'storeInfo' in undefined 原因:data里面没有写return,如下: <script> export default { dat 阅读全文
posted @ 2023-06-20 10:14 叶乘风 阅读(351) 评论(0) 推荐(0)
摘要: 前言:想使用该Api来获取设备导航栏高度,结果报错了:API `getMenuButtonBoundingClientRect` is not yet implemented 尚未实现API `getMenuButtonBoundingClientRect` 原因:该Api不支持在app端或者h5端 阅读全文
posted @ 2023-06-19 14:22 叶乘风 阅读(410) 评论(0) 推荐(0)
摘要: 详细报错: [HBuilder] 11:02:51.408 Manifest.json文件以下节点配置错误,请检查修复[HBuilder] 11:02:51.408 app-plus.distribute.icons.android.hdpi 文件不存在[HBuilder] 11:02:51.408 阅读全文
posted @ 2023-06-19 11:08 叶乘风 阅读(2579) 评论(0) 推荐(0)
摘要: 完整报错: A problem occurred configuring root project '项目名'. > Could not resolve all dependencies for configuration ':classpath'. > Using insecure protoco 阅读全文
posted @ 2023-06-18 10:31 叶乘风 阅读(1987) 评论(0) 推荐(0)
摘要: 2023-06-17 tp6如何开启debug调试 我安装的tp6没有.env文件,官网的文档是说把tp6在根目录生成的.exmaple.env文件改名为.env就可以了, 如果没有该文件就直接创建一个,然后在里面添加代码:APP_DEBUG = true;如果想关闭调试则设置为false即可。 注意:官方说明该调试只可用于本地测试,部署到生产环境时 阅读全文
posted @ 2023-06-17 23:31 叶乘风 阅读(531) 评论(0) 推荐(0)
摘要: <div class="box">测试</div> ··· .box{ color: #ccc; text-align: center; position: relative; &::after { position: absolute; left: 24rpx; top: 52%; content 阅读全文
posted @ 2023-06-15 15:31 叶乘风 阅读(269) 评论(0) 推荐(0)
摘要: <template> <view> <scroll-view scroll-y="true" @scrolltolower="lower" lower-threshold="500" :style="{ height: scrollH + 'rpx' }"> <view class="mess-bo 阅读全文
posted @ 2023-06-14 15:28 叶乘风 阅读(290) 评论(0) 推荐(0)
摘要: 1. 在子组件中使用 `$emit` 方法触发该方法 ```vue ``` 2. 在父组件中监听该事件,并调用相应的方法 ```vue ``` 阅读全文
posted @ 2023-06-14 14:20 叶乘风 阅读(43) 评论(0) 推荐(0)
摘要: 运行,报错 ERROR ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - opt 阅读全文
posted @ 2023-06-12 19:46 叶乘风 阅读(501) 评论(0) 推荐(0)
摘要: 原因:sass和sass-loader没安装好。 解决方案:全局安装这两个插件👇 npm i sass -D npm i sass-loader -D 阅读全文
posted @ 2023-06-12 15:00 叶乘风 阅读(1030) 评论(0) 推荐(0)
摘要: 前言:做一个工龄处理的业务,iOS端显示NAN月,Android端显示10月。 原因:iOS端不支持显示时间格式:YYYY-MM-DD HH:MM:SS,它支持:YYYY/MM/DD HH:MM:SS。 解决方案:让后端返回时间格式【YYYY/MM/DD HH:MM:SS】即可。 阅读全文
posted @ 2023-06-09 11:14 叶乘风 阅读(200) 评论(0) 推荐(0)
摘要: 本文主要使用wampserver来搭建后端windows开发环境。 wamp下载地址:https://sourceforge.net/projects/wampserver/files/WampServer%203/WampServer%203.0.0/ 注意:该wamp版本需要使用win7以上机器 阅读全文
posted @ 2023-06-07 11:43 叶乘风 阅读(118) 评论(0) 推荐(0)
摘要: 注意:我使用的是next主题。 找到路径:你的博客\themes\hexo-theme-next\layout,修改archive.swig文件: 修改前: <span class="archive-page-counter"> {% set cheers %} {% set posts_lengt 阅读全文
posted @ 2023-06-06 15:04 叶乘风 阅读(73) 评论(0) 推荐(0)
摘要: 前言:我又新建了一个hexo博客,运行时报错,提示4000端口已被占用,下面提供两钟解决方案: 1.暂时修改端口号: 修改package.json文件里的server,修改前: "server": "hexo server" 修改后: "server": "hexo server -p 4001" 阅读全文
posted @ 2023-06-05 17:45 叶乘风 阅读(451) 评论(0) 推荐(0)
摘要: 问题描述:如题。 注意:我使用的主题为next。 解决方案:全局搜索:nav class="pagination"或者找到路径:你的博客\themes\hexo-theme-next\layout\_partials里的【pagination.swig】文件,对其进行修改; 修改前: {% if p 阅读全文
posted @ 2023-06-05 17:15 叶乘风 阅读(74) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 44 下一页