上一页 1 2 3 4 5 6 7 ··· 23 下一页

2025年3月1日

request

摘要: <template> <text>{{data}}</text> </template> <script setup> import { ref } from 'vue'; const data = ref([]) // 代替axios了,返回的是一个promise const init = asy 阅读全文

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

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 阅读(30) 评论(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 阅读(9) 评论(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 阅读(11) 评论(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 阅读(7) 评论(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 阅读(13) 评论(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 阅读(45) 评论(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 阅读(31) 评论(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 阅读(29) 评论(0) 推荐(0)

mainfest设置

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

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

上一页 1 2 3 4 5 6 7 ··· 23 下一页

导航