会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
笔记
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
10
···
18
下一页
2024年3月10日
uni-app 微信小程序开发者工具预览项目
摘要: 1. 打开微信开发者工具 ① 设置 -> 代理设置 -> 选择使用系统代理 ② 安全设置 -> 开启服务端口 2. 项目中找到并打开配置文件 mainfest.json -> 微信小程序配置 -> AppID配置 3. 运行小程序 如果没有配置微信开发者工具地址,在工具下拉 -> 设置 -> 运行配
阅读全文
posted @ 2024-03-10 10:17 Li_pk
阅读(619)
评论(0)
推荐(0)
2024年3月7日
uni-app 启用组件按需注入
摘要: 1. 打开 manifest.json 配置文件 2. 选择最后的源码视图,并找到小程序特有相关 mp-weixin 增加 "lazyCodeLoading" : "requiredComponents" /* 小程序特有相关 */ "mp-weixin" : { // ... "lazyCodeL
阅读全文
posted @ 2024-03-07 09:29 Li_pk
阅读(1413)
评论(0)
推荐(0)
2024年2月29日
react native 生成二维码
摘要: 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)
2024年2月28日
VSCode设置默认换行符
摘要: 设置里搜索Eol,\n是LF, \r\n是CRLF
阅读全文
posted @ 2024-02-28 16:12 Li_pk
阅读(341)
评论(0)
推荐(0)
2024年2月23日
vue3 使用 html5-qrcode 实现扫描二维码功能
摘要: 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)
Tailwind CSS 使用 Iconify 图标
摘要: 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)
2024年1月30日
react native 让 ScrollView 高度占100%
摘要: ScrollView 高度占满页面的剩余高度,开始设置 flex: 1 发现高度占满了,但是滚动失效了。 经过测试修改: <ScrollView contentContainerStyle={{ flexGrow: 1 }}></ScrollView>
阅读全文
posted @ 2024-01-30 09:51 Li_pk
阅读(124)
评论(0)
推荐(0)
2024年1月26日
Prettier 格式化报错 TypeError: A dynamic import callback was not specified.
摘要: 记录今天遇到的奇怪的问题,在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)
2024年1月19日
接口返回字符转包含 \n 时,页面渲染不会换行
摘要: 描述: 接口返回数据字符串,使用插值语法 {{ 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)
2024年1月18日
react native 使用 Expo Clipboard 复制内容到剪切板
摘要: 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
下一页
公告