- 博客(262)
- 资源 (1)
- 收藏
- 关注
原创 el-date-picker:Error in v-on handler: “TypeError: date.getHours is not a function“ found in
为时间赋值后,再次使用el-date-picker选择时间,报错。解决方法new Date 转换字符串为 Date 类型。出错原因,时间格式不正确。
2024-05-18 17:20:41 125
原创 vue element ui el-checkbox 只在disabled才显示
vue element ui el-checkbox 只在disabled才显示。v-model绑定的对象(后端返回)为null值,改为数组即可。
2024-05-17 15:37:16 209
原创 echart柱状图的第一个柱子超出了y轴
此属性与坐标轴两端空白有关。默认值为true即留空,false则表示柱子顶头,而出现上述现象,是因为代码中参数 boundaryGap设置为了false。将boundaryGap的值改为true或者去掉那行代码不使用该参数即可。
2024-05-16 15:01:58 466 1
原创 ception: Failed to execute ‘open‘ on ‘XMLHttpRequest‘: Invalid URL
注:结合api.js内容看完整链接,我出错的原因是少 /出错原因:也有可能是路径少 /检查请求链接是否是完整无误。
2024-04-29 17:36:21 687
原创 unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found:
解决方法:npm install --legacy-peer-deps。npm install 时报错。
2024-04-29 13:43:28 159 2
原创 Unknown custom element: <el-tooltip> - did you register the component correctly?
【代码】Unknown custom element: - did you register the component correctly?
2024-04-11 17:03:05 155
原创 vue 在同一元素上绑定单击和双击事件,双击事件影响单击事件解决
vue 在同一元素上绑定单击和双击事件,双击事件影响单击事件解决。解决办法:利用计时器,在大概时间模拟双击事件。
2024-04-10 13:40:59 250
原创 Node Sass does not yet support your current environment
报错是node-sass的版本出现问题了,node-sass的版本是由node版本决定。查看node和node-sass的版本的版本,进行版本匹配。
2024-04-09 11:19:33 530
原创 安装nvm后报错:Could not retrieve https://nodejs.org/dist/index.json. Get “https://nodejs.org/dist/index..
安装nvm后报错:Could not retrieve https://nodejs.org/dist/index.json. Get "https://nodejs.org/dist/index…在本地找到安装nvm的路径,在nvm文件夹下找到settings.txt,添加以下代码即可。
2024-04-09 11:13:32 432
原创 el-dialog仅可通过关闭按钮进行关闭
添加 :close-on-click-modal=“false”el-dialog仅可通过关闭按钮进行关闭。
2024-03-29 15:35:24 380
原创 nvm下载安装图文版
安装包下载地址:https://github.com/coreybutler/nvm-windows/releases,windows系统下载nvm-setup.zip安装包。
2024-03-20 17:38:11 521
原创 vue项目设置通过IP和localhost可同时访问
vue项目设置通过IP和localhost可同时访问。在要运行的分支下添加host,最后重新运行项目。打开package.json文件。
2024-03-20 16:23:53 525
原创 用百度打开网站,视频无法播放;苹果自带浏览器打开网址无法播放
解决方法:iframe换成video,使用video标签引入视频。用百度打开网站,视频无法播放;苹果自带浏览器打开网址无法播放。前提:网站采用vue编写,视频通过iframe嵌入。
2024-03-14 16:05:25 392
原创 jdk1.8下载与安装 图文版
首先在Oracle官网上下载jdk1.8.https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html,如下图所示,找到jdk1.8,选择对应的版本。链接:https://pan.baidu.com/s/13lZy7JKE1xn-dXx_VG1QFA?更改jre安装路径,建议将jre安装在jdk同一级目录。使用快捷键【win+R】,输入cmd,点击【确定】。
2024-03-11 21:52:16 1086
原创 [email protected] dev: `vite` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] dev scr
[email protected] dev: `vite` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2024-03-08 09:20:37 343
原创 前端实现图片绕指定圆心转动,且图片自身不转动的功能
然后利用transform-origin: bottom left;前端实现图片绕指定圆心转动,且图片自身不转动的功能、用transform: rotate 去做旋转。逆时针旋转 animation 选择反向运行的。利用css的animation 去做循环。img 在div旋转的同时 做反向旋转。
2024-03-07 16:46:41 483
原创 You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the
You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file.
2024-03-05 09:33:06 898
原创 webstorm2023.3.4安装与破解
打开JetBrains官方网站(https://www.jetbrains.com/webstorm/)运行.exe选择安装路径第一个意思是是否创建桌面快捷方式,可根据需要选择;第二个.js .css .html勾选后之后js css html文件默认会用webstorm打开点击“下一步”按钮继续安装。安装到此结束。
2024-03-01 17:58:12 1853 23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人