上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
摘要: 1. 打开微信开发者工具 ① 设置 -> 代理设置 -> 选择使用系统代理 ② 安全设置 -> 开启服务端口 2. 项目中找到并打开配置文件 mainfest.json -> 微信小程序配置 -> AppID配置 3. 运行小程序 如果没有配置微信开发者工具地址,在工具下拉 -> 设置 -> 运行配 阅读全文
posted @ 2024-03-10 10:17 Li_pk 阅读(619) 评论(0) 推荐(0)
摘要: 1. 打开 manifest.json 配置文件 2. 选择最后的源码视图,并找到小程序特有相关 mp-weixin 增加 "lazyCodeLoading" : "requiredComponents" /* 小程序特有相关 */ "mp-weixin" : { // ... "lazyCodeL 阅读全文
posted @ 2024-03-07 09:29 Li_pk 阅读(1413) 评论(0) 推荐(0)
摘要: 1. 安装 npm i -S react-native-svg react-native-qrcode-svg 2. 引入使用 默认用法 import QRCode from 'react-native-qrcode-svg'; // 不带logo render() { return ( <QRCo 阅读全文
posted @ 2024-02-29 12:28 Li_pk 阅读(393) 评论(0) 推荐(0)
摘要: 设置里搜索Eol,\n是LF, \r\n是CRLF 阅读全文
posted @ 2024-02-28 16:12 Li_pk 阅读(341) 评论(0) 推荐(0)
摘要: 1. 安装 npm安装 npm install --save-dev html5-qrcode 或直接引入 <script src="https://unpkg.com/html5-qrcode" type="text/javascript"> 2. 引入 根据需求自定义渲染 QR scanning 阅读全文
posted @ 2024-02-23 16:09 Li_pk 阅读(10677) 评论(0) 推荐(1)
摘要: 1. 安装依赖 通过 npm 安装 tailwindcss,并创建 tailwind.config.js 文件。 npm install tailwindcss -D npx tailwindcss init 安装 iconify 图标库和 TailwindCSS 插件。 npm install @ 阅读全文
posted @ 2024-02-23 10:08 Li_pk 阅读(1487) 评论(0) 推荐(0)
摘要: ScrollView 高度占满页面的剩余高度,开始设置 flex: 1 发现高度占满了,但是滚动失效了。 经过测试修改: <ScrollView contentContainerStyle={{ flexGrow: 1 }}></ScrollView> 阅读全文
posted @ 2024-01-30 09:51 Li_pk 阅读(124) 评论(0) 推荐(0)
摘要: 记录今天遇到的奇怪的问题,在vscode中使用Prettier格式化代码时,控制台报错: ["ERROR" - 9:30:18 AM] Error resolving prettier configuration for c:\My\Test\learning\src\utils\index.js 阅读全文
posted @ 2024-01-26 10:50 Li_pk 阅读(1374) 评论(3) 推荐(3)
摘要: 描述: 接口返回数据字符串,使用插值语法 {{ text }} 渲染到页面时,内容的换行未生效。 解决: 使用 white-space: pre-line; <template> <div style="white-space: pre-line;">{{ text }}</div> </templ 阅读全文
posted @ 2024-01-19 17:37 Li_pk 阅读(137) 评论(0) 推荐(0)
摘要: 1. 安装 npx expo install expo-clipboard 2. 使用 import * as React from 'react'; import { View, Text, Button, StyleSheet } from 'react-native'; import * as 阅读全文
posted @ 2024-01-18 09:16 Li_pk 阅读(156) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页