- 博客(13)
- 资源 (3)
- 收藏
- 关注
原创 uniapp组件uni-file-picker中设置仅使用照相机和仅相册的权限
在uniapp中,我们通常会使用uni-file-picker这个组件,但是这个组件中,有点缺陷,就是没有对这个功能的传值设置,这里就要给组件进行修改了。在写uniapp项目中,对于上传图片有时会有这样的需求:只可使用照相机拍摄上传,不可使用相册。
2024-03-19 15:33:04 729 2
原创 【mysql 查询一年中的所有月份】
数据统计中经常有这样的需求,统计今年1-12月的数据,以下博主搜寻了2种方法,希望可以帮到大家。第二种:先建立一个1-12的数组,拿取当前每个月的第一天,之后可以按照需求拿取月份和日期.第一种:采用union方式。
2023-07-06 14:19:27 3745 1
原创 【vue打包dish 直接访问后端接口问题】
http-server代理axios请求http-server 简介http-server 简介#http-server是一个简单的零配置命令行http服务器。它足够强大,足以用于生产用途,但它既简单又易于破解,可用于测试,本地开发和学习。使用场景除了可以用于实现前后端分离外,如果我们有些纯前端的一些html页面想要对外提供访问,http-server也是一种非常方便的工具。安装http-server先要确保安装了Node,然后再执行下列的安装命令。#全局方式安装http-servernpm i
2021-12-22 14:04:29 1834
原创 【el-select 结合el-tree 实现下拉选择】
` <el-form-item label="所属单位" prop="parentId"> <el-select v-model="company" placeholder="请选择" multiple @change="selectChange" collapse-tags> <el-option :value="mineStatusValue" style="height: auto"> <el
2021-12-16 15:52:11 405
原创 mysql 配置问题 yml(You must configure either the server or JDBC driver)
使用JDBC连接MySql时出现:The server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration错误提示:Cause: org.springframework.jdbc.CannotGetJdbcCon
2021-11-23 11:29:06 860
原创 java读取Excel文件
java读取Excel文件1.导入jar包<dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.17</version> </dependency>2、源代码package util;import org.apache.poi.ss
2021-11-17 15:18:47 1186
原创 element ui文件上传
element ui文件上传[https://element.eleme.cn/#/zh-CN/component/tree#scoped-slot] element官网html部分:<el-form-item label="文件上传" prop="file"> <div class="demo-input-suffix " style="display: flex;"> <el-input placeholder="请选择要导入的文件
2021-11-17 14:53:48 304
原创 PPT ,word .pdf.excle 文档相互转换的源码
第一步代码放进新建的类public static String word(String from,String to) throws Exception {if (!getWordLicense()) throw new Exception(“com.aspose.words lic ERROR!”); String suffixStr = to.substring(to.lastIndexOf(".")+1); int suffix=com.aspose.words.SaveFo
2021-06-30 15:10:46 250
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人