logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue3 ‘XXX‘ is defined but never used

在package.json文件中的eslintConfig中的rules加上如下代码,然后保存一下就可以了 (不行的话,可以重新运行一下项目)

文章图片
#vue.js
uniapp微信小程序 TypeError: $refs[ref].push is not a function

【代码】uniapp微信小程序 TypeError: $refs[ref].push is not a function。

文章图片
#uni-app
微信小程序 -- ios 底部小黑条样式问题

如图,ios有的机型底部伪home键会显示在按钮之上,导致点击按钮的时候误触。

文章图片
#微信小程序#ios#小程序
Expected indentation of 16 spaces but found 8 spaces.eslintvue/script-indent

问题:Expected indentation of 16 spaces but found 8 spaces.eslintvue/script-indent原因: 严格地检查缩进问题,并不是报错。

文章图片
#前端
不能包含中文的正则表达式

【代码】不能包含中文的正则表达式。

文章图片
#正则表达式
uniapp小程序使用uni.switchTab跳转首页,首页的tabbar消失了

uniapp小程序在个人中心页调用登录接口,登录成功后使用uni.switchTab跳转首页,首页的tabbar消失了。

文章图片
#前端
uniapp引入微信小程序直播组件

在manifest.json配置即可,与直接在小程序代码中引入相同。通过直播间列表接口查询直播间列表,显示在小程序中。点击直播间,跳转到小程序直播组件即可。

文章图片
#uni-app#微信小程序#小程序
uniapp使用uni-forms表单校验无效

查看是否写了name属性,且name属性的属性值得和下面v-model绑定的一致,否则校验不生效。

文章图片
#uni-app
uniapp h5发行

前端使用uniapp开发项目完成后,需要将页面打包,生成H5的静态文件,部署在服务器上。这样通过服务器链接地址,直接可以在手机上点开来访问。

文章图片
#uni-app
报错 ‘defineProps‘ is not defined.eslintno-undef

【代码】报错 ‘defineProps‘ is not defined.eslintno-undef。

文章图片
#前端
    共 18 条
  • 1
  • 2
  • 请选择