上一页 1 2 3 4 5 6 7 8 9 ··· 25 下一页

2025年3月1日

setStorageSync、getStorageSync、removeStorageSync、clearStorageSync

摘要: <template> <text>{{getStorage}}</text> </template> <script setup> // 一般使用Sync同步的api // 设置localStorage uni.setStorageSync('key', '我是存的数据') // 获取localSt 阅读全文

posted @ 2025-03-01 22:24 ChoZ 阅读(190) 评论(0) 推荐(0)

navigateTo、relaunch、navigateBack、getCurrentPages

摘要: <template> <button @click="show">跳1</button> <button @click="hide">跳2</button> <button @click="back">回退</button> </template> <script setup> // 使用js代码跳 阅读全文

posted @ 2025-03-01 18:54 ChoZ 阅读(45) 评论(0) 推荐(0)

setTabBarItem、setTabBarStyle、showTabBar、hideTabBar、setTabBarBadge、removeTabBarBadge、showTabBarRedDot、hideTabBarRedDot

摘要: <template> <!-- <button @click="show">显示</button> <button @click="hide">隐藏</button> --> </template> <script setup> // 设置下面的tabbar的配置 uni.setTabBarItem 阅读全文

posted @ 2025-03-01 17:18 ChoZ 阅读(112) 评论(0) 推荐(0)

setNavigationBarTitle、setNavigationBarColor、showNavigationBarLoading、hideNavigationBarLoading、hideHomeButton

摘要: <template> <button @click="show">显示</button> <button @click="hide">隐藏</button> <view class=""> <navigator url="/pages/demo/rpx">跳</navigator> </view> 阅读全文

posted @ 2025-03-01 15:25 ChoZ 阅读(43) 评论(0) 推荐(0)

showActionSheet

摘要: <template> <button @click="show">显示</button> </template> <script setup> const arr = ['A','B','C'] const show = () => { // 下面弹出来的选项 uni.showActionSheet 阅读全文

posted @ 2025-03-01 14:32 ChoZ 阅读(37) 评论(0) 推荐(0)

showModal、showLoading、hideLoading

摘要: <template> <button @click="show">显示</button> <button @click="hide">隐藏</button> <button @click="deleteMsg">删除</button> </template> <script setup> const 阅读全文

posted @ 2025-03-01 00:03 ChoZ 阅读(171) 评论(0) 推荐(0)

2025年2月28日

showToast、hideToast

摘要: <template> <button @click="show">显示</button> <button @click="hide">隐藏</button> </template> <script setup> const show = () => { uni.showToast({ duratio 阅读全文

posted @ 2025-02-28 23:30 ChoZ 阅读(127) 评论(0) 推荐(0)

uniapp auto-import

摘要: 1.安装 npm i unplugin-auto-import 2.创建vite.config.js,并配置 import { defineConfig } from 'vite' import uni from '@dcloudio/vite-plugin-uni' import AutoImpo 阅读全文

posted @ 2025-02-28 18:11 ChoZ 阅读(149) 评论(0) 推荐(0)

mainfest设置

摘要: 在这里可以对要输出的不同端进行设置 阅读全文

posted @ 2025-02-28 17:41 ChoZ 阅读(104) 评论(0) 推荐(0)

easyCom、tabBar

摘要: 1.easyCom:根据固定的路径创建的文件,不需要引入和注册组件,可以直接template使用 安装在项目根目录的components目录下,并符合components/组件名称/组件名称.vue 2.tarBar { "pages": [ //pages数组中第一项表示应用启动页,参考:http 阅读全文

posted @ 2025-02-28 17:30 ChoZ 阅读(60) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 25 下一页

导航