11 2023 档案

摘要:uniapp 使用 axios 二次封装 import Vue from 'vue' import axios from 'axios' const baseUrl = 'http://127.0.0.1:8080' // 服务器地址 const imageUrl = baseUrl const s 阅读全文
posted @ 2023-11-22 16:21 snail-2018 阅读(285) 评论(0) 推荐(0)
摘要:1 uni.request() 二次封装 import Vue from 'vue' const baseUrl = 'http://127.0.0.1:8080' // 服务器地址 const imageUrl = baseUrl const staticVariables = { BASE_UR 阅读全文
posted @ 2023-11-22 15:14 snail-2018 阅读(246) 评论(0) 推荐(0)
摘要:input 输入框只能输入正数,保留小数点后两位,禁止输入 00之类的 /** * 只能输入数字 \保留小数点后两位 * @param e * @returns {*} */ const numUtil = (e) => { let value = e value = value.replace(/ 阅读全文
posted @ 2023-11-15 09:44 snail-2018 阅读(138) 评论(0) 推荐(0)