-
使用react的createPortal实现全局消息提示组件
如何封装一个全局的消息提示组件 心路历程: 在我的mini-bolg开发过程中,需要封装一个消息提示组件,项目基于nextjs+daisyui(一个基于tailwinds的ui库)开发。在组件封装的过程中,遇到了一些问题,在此记录一下=... -
webstorm中的eslint错误解决
今天刚拉下公司代码,用webstorm打开,就提示这个错误 原因根据提示,可以看到原因是babel-preset-react-app预设需要指定环境变量NODE_ENV或者BABEL_ENV,但是当前它们未被设置或者设置的值未定义(undefi... -
扫码带参数进入微信小程序
项目需求需要生成一个二维码,通过扫描该二维码进入的用户,能展示配置好的购买票种,其他方式进入的不展示。 配置流程 在小程序开发文档,找到 开发-开发管理 ,下滑找到 扫普通链接二维码打开小程序 添加配置链接 配置保存完成之后,通过二维码生成器,生成携... -
mac实用软件破解方式
前言本文仅供学习使用,请支持正版。 JetBrains全家桶 支持大部分JetBrains系列软件,本文以webstorm为例 安装软件 前往JetBrains官网 下载你所需要破解的软件 安装破解jar包 打开链接 ,等待加载完毕之后,选择一个... -
关于uniapp项目打包成APP应用
前言最近用uniapp开发了一款ios、android应用,项目打包的过程中用到了高德地图的sdk,在打包时遇到的一些问题,在这里记录一下。 打包流程 点击发行,选择原生App-云打包 打包配置分为android和ios配置 安卓配置 选择使... -
mac解决文件损坏无法打开
问题描述使用mac电脑在下载完PicGo软件后,打开显示文件损坏,无法打开 解决方法打开终端,输入 sudo xattr -d com.apple.com.quarantine "/Applications/PicGo.app" ... -
uniapp开发ios应用获取定位遇到的问题?
问题描述在使用uniapp开发ios应用时,有个功能需要获取自己的定位信息,使用的uni.getLocation() 在开发阶段 运行到手机调试 时能正常获取到位置,但在云打包成ipa后安装到手机,发现没有获取到位置,当时已经配置好了ios的权限获取... -
元旦日记
Here’s something encrypted, password is required to continue reading.
-
如何在浏览器中监听是否离开当前页面?
如何判断是否离开当前页面显示不同的title内容 离开显示 当前显示 解决方法1234567891011121314document.addEventListener("visibilitychange", functi... -
关于在uniapp中使用websocket
前要 今天公司用uniapp开发的手机端应用需要用到websocket实时获取数据,在这里记录一下使用方法,以及对于断开重连,心跳机制用法的封装。 使用方法先上代码 123456789uni.connectSocket({ url: &...