在开发的时候我使用Inertiajs跳转时发现页面闪烁,经过测试最终发现是视图的加载方式不一致导致的。 视图1: <Layout> //... </Layout> 视图2: const View =()=>{} View.layout = (page) => ( <Lay
不打开AS或者idea,单独打开安卓虚拟机命令 ~/Library/Android/sdk/emulator/emulator -avd xxx # change to your emulator name
腾讯云做了镜像,把地址修改一下,比如gradle/wrapper/gradle-wrapper.properties: distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip 换成: distr
项目初始化 使用expo的“bare React Native app with Expo tools”,是因为我使用expo直接创建的项目在通过本地构建的时候报错。 npx create-expo-app --template bare-minimum 直接使用create-expo-app项目在
npm start运行慢 当运行Android的时候提示下面代码,然后卡住不动: Execution failed for task ':react-native-gradle-plugin:compileKotlin'. 这是因为gradle正在下载,为了加快速度需要配置镜像。 提示“error
在开发electron应用中,需要左右两个区域同步滚动,在网上找到下面这个解决思路记录一下。 原文:https://www.cnblogs.com/zihang-cheng/p/16492198.html import "./styles.css"; import { useRef } from "
在使用electron开发过程中整个页面如果超出页面高度就会出现滚动影响体验,页面内部分元素超出高度可以使用部分区域的滚动,比较接近原生应用体验。在父元素使用flex布局的情况下,子元素会超出父元素的高度,解决方法是给子元素加上min-h-0,限制最小高度为0,然后在想要的滚动元素(min-h-0元
镜像设置 pnpm config set registry https://registry.npmmirror.com pnpm config set electron_mirror https://npmmirror.com/mirrors/electron/ pnpm config set e
模型通常和其他模型关联,在查询的时候通常多个条件查询而且条件之间可能分组,下面代码是个示例: Post::join('tableB', 'posts.id', '=', 'tableB.aid')->where(function ($query){ $query->where(xxxxxxx