logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Taro.createSelectorQuery()踩坑之路

其实Taro.createSelectorQuery()这个API的坑很浅的,不算很难。一开始刚使用的时候大家发现const query = Taro.createSelectorQuery().select(className).boundingClientRect();query.exec(res => {console.log(res);...

#小程序#前端
vue3 监听vuex里的数据变化

import {computed,watch,} from 'vue';const getShowTask = computed(()=>{//返回的是ref对象return store.state.监听的字段;})watch(getShowTask, (newVal, oldVal) => {console.log('newVal, oldVal', newVal, oldVal)}

#前端
uni-app uni.createIntersectionObserver在vue3的自定义组件中填坑

uni.createIntersectionObserver 在自定义组件中无法获取到对应的dom节点:uni.createIntersectionObserver().relativeTo('.consult_title').observe('#consultNotice', (res) => {//目前这种方式在开发者工具中会报 Node '.consult_title' is not

#uni-app
vue3 监听vuex里的数据变化

import {computed,watch,} from 'vue';const getShowTask = computed(()=>{//返回的是ref对象return store.state.监听的字段;})watch(getShowTask, (newVal, oldVal) => {console.log('newVal, oldVal', newVal, oldVal)}

#前端
到底了