- 博客(12)
- 收藏
- 关注
原创 记录vite打包部署问题
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec
2023-12-19 17:23:25
191
原创 vue3全局变量定义及使用
定义全局变量const app = createApp({})app.config.globalProperties.$http = () => {}全局变量使用const { proxy } = getCurrentInstance()全局变量为null如果按照上述情况还是获取不到,检测是否写在自定义函数中,尝试写在setup函数中setup(){ const { proxy } = getCurrentInstance()}...
2021-12-24 09:35:15
2559
原创 个推jar包无法下载
maven配置文件<mirrors> <mirror> <id>nexus-aliyun</id> <mirrorOf>*,!getui-nexus</mirrorOf> <name>Nexus aliyun</name> <url>https://maven.aliyun.com/nexus/content/groups/public/</url> </mir
2021-12-16 15:46:03
316
原创 vue-router编程式页面跳转
1. 不携带参数this.$router.push('/xxx')2. 通过query携带参数this.$router.push({ path: '/xxx', // 使用query携带参数,可以使用path,也可以是用name name: 'xxx', // 二者可以选其一 query:{ id: 1, }})// 页面路径表现http://localhost:8080/xxxx?id=1// 组件获取参数this.$route.quer
2021-04-30 21:57:32
304
1
原创 picker使用及显示问题
<view class='line'> <view class='lineLeft'>*上级单位</view> <picker mode="selector" :range="division" :range-key="'name'" @change="change" :value="selectDivision" data-name="division" @cancel="pickerClose" @tap="changStatus" class=
2020-11-19 12:23:42
1250
原创 c#中的SqlHelper类介绍
SQLConnection作用:SqlConnection类用于连接SQLSERVER数据库,使用该类对象可以打开数据库连接,和关闭数据库连接创建对象的方法string ConnStr = ConfigurationManager.AppSettings["ConnectionString"]SqlConnection conn = new SqlConnection(Co...
2020-05-03 09:51:47
853
原创 可变类型和不可变类型及函数传参
a = 100b = aprint('a:%d'%id(a))print('b:%d'%id(b))a = 200print('a:%d'%id(a))print(b, "b:%d"%id(b))# 运行结果a:1965193792b:1965193792a:1965196992100 b:1965193792以上内容分为四部分理解:a定义为整数类型变量,不可变....
2019-03-07 11:04:39
564
1
原创 __name__问题
1.建立test1.py文件print(__name__)if __name__ == '__main__': print(__name__)# 运行结果:__main____main__2.建立test2.py文件import test1print(test.__name__)print(__name__)运行结果:test1test1__main__...
2019-03-05 08:57:53
149
原创 mysql指令集合
# 常用指令select version();# 查看mysql的版本show databases;# 显示当前所有的数据库use database_name;# 选择使用的数据库名字create database database_name charset utf8;# 创建数据库# 对于数据表的操作(对数据表的操作使用alter)show tables;# 显示...
2019-02-22 11:11:53
160
原创 git操作指令
git操作总结git常用指令git version# 查看git的版本sudo apt-get install git# 安装gitgit status# 查看当前目录下文件所在的区域,红色是工作区,绿色是暂存区git log# 查看详细版本历史信息git reflog# 查看简要的版本历史信息git配置git config --global user.name "us...
2019-02-20 17:57:55
189
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人