taro小程序开启下拉刷新
2023-08-18
2023-08-21
在app.config或者页面的config中开启下拉刷新 export default definePageConfig({ navigationBarTitleText: '订单列表', enablePullDownRefresh:true }) 在代码中使用下拉刷新钩子 import
227
|
0
taro小程序开启下拉刷新
chooseImage:fail api scope is not declared in the privacy agreement
2023-08-16
2023-08-16
chooseImage:fail api scope is not declared in the privacy agreement 微信小程序无法打开相册,控制台报以上错误 解决方案:微信小程序后台更新隐私协议,把相册相关权限写上并审核,审核通过后可以使用
280
|
0
chooseImage:fail api scope is not declared in the privacy agreement
taro问题记录
2023-08-08
2023-08-08
taro 开启独立分包的时候 微信小程序dev模式报错
67
|
0
taro问题记录
css一半背景颜色
2023-08-08
2023-08-08
css
.title { display: inline-block; position: relative; } .title::before { width: 100%; height: 30%; background: rgba(84, 118, 251,
76
|
0
css一半背景颜色
react使用记录
2023-07-12
2023-07-12
useState赋值不生效 react setState只有数据发生深拷贝的时候才会改变 建议直接使用es6对象语法赋值 setValue({...value}) 使用组件定义单击事件不生效 比如在父组件里使用子组件,想在子组件的实例上定义单机事件 但是这个时候是无效的,因为子组件实例并不是真实do
81
|
0
react使用记录
在纯html使用react并使用组件
2023-07-10
2023-07-10
最近有个邪门项目 本身有一个vue3+vite的项目 但是需要新写一个门户页面 但是代码还需要托管到这个项目的git上 页面直接使用nginx静态部署 所以也不能使用现有的架构了 准备直接写html 但是这几个页面有复用的地方 所以准备直接在html里写react 看到几篇文章 分享一下 引用rea
99
|
0
在纯html使用react并使用组件
关于vite+vue3使用scss打包后报错的问题
2023-07-06
2023-07-12
vue文件 <template> <div :class="utilStyle.normal"><div/> </template> <script setup lang="ts"> import utilStyle from './util.scss' </script> scss文件 .no
86
|
0
关于vite+vue3使用scss打包后报错的问题
滚动条自动滚动
2023-07-05
2023-07-05
onMounted(() => { let content = document.getElementById('content') let clientheight = content.clientHeight let offsetheight = content.scrollHeig
70
|
0
滚动条自动滚动
uniapp vue3项目使用qs-scanlistener插件接入pda
2023-06-16
2023-06-16
由于业务需要,公司采集了pda设备,准备接入uniapp应用进行扫码 在uniapp的插件市场中有支持手机广播方式进行获取扫码内容的组件 但是不支持vue3的语法,所以只能自行改造了 插件名:qs-scanlistener 安装方式就不细说了,按照插件市场的文档来就可以 本地文件路径: /uni_m
204
|
0
uniapp vue3项目使用qs-scanlistener插件接入pda
uniapp vue3项目使用uniui的uni-data-select时,数据无法默认选中的问题
2023-06-15
2023-06-15
问题描述: uniapp vue3项目使用uniui的uni-data-select时,数据无法默认选中的问题 问题代码1: <uni-data-select v-model="detail.data.goodsNo" :localdata="goodsVM.options"></uni-data-
140
|
0
uniapp vue3项目使用uniui的uni-data-select时,数据无法默认选中的问题
1 2
3
4