会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
笔记
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
···
15
下一页
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
阅读(670)
评论(2)
推荐(1)
编辑
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
阅读(42)
评论(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
阅读(55)
评论(0)
推荐(0)
编辑
2024年1月15日
react native 使用 FlatList 实现单选列表组件
摘要: 1. 最终效果: 2. 实现代码: import React, { useState } from 'react'; import { FlatList, SafeAreaView, StatusBar, StyleSheet, Text, TouchableOpacity, } from 'rea
阅读全文
posted @ 2024-01-15 11:34 Li_pk
阅读(38)
评论(0)
推荐(0)
编辑
2024年1月12日
axios中使用qs.stringify格式化get请求参数
摘要: 安装使用: 安装: npm install qs 引入使用: // 引入封装的 request.js import request from "@/utils/request"; import qs from "qs"; export function getXXX(params) { return
阅读全文
posted @ 2024-01-12 18:08 Li_pk
阅读(262)
评论(0)
推荐(0)
编辑
2024年1月8日
React Native 中,实现投影(shadow)效果
摘要: 1. 效果: 2. 实现: import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; const ShadowExample = () => { return ( <View style={st
阅读全文
posted @ 2024-01-08 17:56 Li_pk
阅读(202)
评论(0)
推荐(0)
编辑
2024年1月5日
el-table 设置合并行或列时,显示错乱问题
摘要: 1. 需求效果图: 2. 接口数据格式: 点击查看代码 const list = [ { contractNo: "CAI-20220801001", contractItem: "用户质量指数", count: 15234, customerItems: [ { contractNo: null,
阅读全文
posted @ 2024-01-05 17:54 Li_pk
阅读(888)
评论(0)
推荐(0)
编辑
2023年12月29日
fetch 请求 stream 流接口并使用 AbortController 中断结果响应
摘要: 1. 使用fetch请求stream流接口: 封装fetch工具方法 fetchRequest.js const fetchStream = async (url, options) => { const response = await fetch(url, options); if (respo
阅读全文
posted @ 2023-12-29 18:31 Li_pk
阅读(421)
评论(0)
推荐(0)
编辑
2023年12月27日
expo 打包 Android 指令记录
摘要: 一、配置版本号 配置app.json { "expo": { "name": "YourAppName", "slug": "your-app-name", "version": "1.0.0", "android": { "versionCode": 1 }, "ios": { "buildNum
阅读全文
posted @ 2023-12-27 09:17 Li_pk
阅读(65)
评论(0)
推荐(0)
编辑
2023年12月21日
vue router 配置 component 报错 TypeError: Cannot use 'in' operator to search for 'catch' in undefined
摘要: 问题描述: 在配置路由文件时,开始时component不小心写成下面的格式 打开页面控制台报错如下 解决方案: 引入组件的箭头函数忘记写返回。。 或者写成一行 相当低级的错误。
阅读全文
posted @ 2023-12-21 16:57 Li_pk
阅读(270)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
···
15
下一页
公告