![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
开发bug合集
火腿肠烧烤大赛冠军
F=-F
展开
-
vue ui打开可视化面板一片空白
真离谱啊打开后一片空白点击左下角小房间或者url改为:http://localhost:8000/project/select盲猜路由异常导致原创 2021-09-13 14:32:58 · 429 阅读 · 0 评论 -
开发中的bug-[Vue warn]: Unknown custom element: <mycom1> - did you register the component correctly? For
组件是不是写错了如果是驼峰命名用的时候需要改成中华线例如:myName用的时候需要写成my-name原创 2020-11-05 20:38:21 · 244 阅读 · 0 评论 -
开发中遇到的bug-The following tasks did not complete:XXXDid you forget to signal async completion?
方法一:用done来抑制错误:gulp.task('hello', function (done) { //定义一个hello任务 console.log('hello') done();});方法2 :添加async方法原创 2020-10-20 13:56:16 · 656 阅读 · 0 评论 -
开发中遇到的bug-GulpUglifyError: unable to minify JavaScript
gulp所压缩的js文件出现错误 改动之后压缩即可原创 2020-10-20 13:53:22 · 309 阅读 · 0 评论 -
开发中遇到的bug- 缺少对象800A138f
如果你是新手 那么请在运行时的输入前面加上node如:node a.js如果你是老手 那么请执行npm inint进行初始化原创 2020-10-19 12:56:36 · 1087 阅读 · 5 评论 -
开发中遇到的bug-Cannot set property ‘__VUE_DEVTOOLS_UID__‘ of null
把vscode安装的翻译包重启一下如果不生效=》直接卸载如果不生效=》把浏览器中的自带翻译功能关闭原因就是自带的翻译功能与Vue冲突关闭就好了原创 2020-11-13 19:52:07 · 3775 阅读 · 6 评论 -
开发中遇到的bug-Vue:_handler.apply is not a function
解决办法:看看代码中把和变量名相同的函数名更改更改一下原因:变量的命名与函数命名相冲突当解析函数时解析到了变量原创 2020-10-14 08:53:37 · 318 阅读 · 0 评论 -
开发中遇到的bug-Invalid shorthand property initializer(已解决)
对象中的:是不是写成 = 了?原创 2020-10-13 14:31:57 · 666 阅读 · 1 评论 -
开发中遇到的bug-Failed to load resource: the XXX responded with a status of 404 (Not Found)
axios的get或post路径错误要以index目录为基准或者全局路径// axios.get(‘http://localhost/cartThree/server/server.php?fn=lst’)axios.get(’./server/server.php?fn=lst’)原创 2020-10-12 14:12:52 · 906 阅读 · 0 评论 -
开发中遇到的bug-Property or method “xxxx“ is not defined on the instance but referenced during render.
method没加s加上就好了<body> <div id="app"> <button @click="sub">-</button> <span>{{code}}</span> <button @click="add">+</button> </div> <script> var app = new原创 2020-10-10 14:20:02 · 19444 阅读 · 0 评论 -
开发中遇到的bug-Unexpected token < in JSON at position 0 at JSON.par
1.sql语句拼接没有加=2.1.sql语句拼接没有加?3.php语句后面没有加;原创 2020-10-09 23:23:30 · 425 阅读 · 0 评论 -
开发中遇到的bug-The requested URL XXX was not found on this server.
axios.post('http://localhost/day25/demo/php/server.phpfn=add', data).then(res => { if (res == 1) { //插入成功后关闭弹出框,刷新页面 $('#userAddModal').modal('show'); location.reload(); } else { alert('删除失原创 2020-10-09 20:57:08 · 1172 阅读 · 0 评论 -
开发中遇到的bug-Uncaught TypeError: $(...).css is not a function
在用jQuery设置点击事件时 点击后出现该报错用style就可以 后来发现卸载click函数外面也可以怀疑是this指向问题总之遇到该报错把click里面的样式改成style就可以了//spam点击隐藏$('#spmBtn').click(function () { $('.spam').css("display", "none"); // $('.spam').css({ // display: "none", // });//不生效 // con原创 2020-09-30 10:07:42 · 2618 阅读 · 0 评论 -
开发中遇到的bug-offsetLeft、offsetTop、offsetWidth、offsetHeight加减时未考虑取整导致bug
offsetleft、offsettop、offsetwidth、offsetheight,这四个函数最终获取的均为整数取整方式为四舍五入与整数相加减需酌情处理或者对其所加减的整数进行取整(负数向下取整 正数向上取整)测试代码如下:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width原创 2020-09-19 17:40:39 · 824 阅读 · 0 评论 -
开发中遇到的bug-盒子使用display:flex后再使用display:none失效的办法
在需要隐藏的盒子外面再套一个大盒子即可.topLeft a:hover+.timTOP { display: block;}.timTOP{ display: none;}.timTOP:hover{ display: block;}原创 2020-09-19 14:54:49 · 1822 阅读 · 0 评论 -
开发中遇到的bug-初学js者必犯错误(NT错误持续更新中。。。)
1.提交表单信息后一直接收不到数据怎么办?解决方法:声明点击事件接收的变量时 要在接收函数中声明 不然会一直空字符串。例如:<body> <form action=""> 卡号:<input type="text" name="" id="input" placeholder="请输入10开头的8位卡号" value=""> <input type="button" value="立即提交" id="button">原创 2020-09-05 17:52:28 · 347 阅读 · 0 评论 -
开发中遇到的bug-由于==/和=引发的bug导致盒子运动失败
在写盒子运动时遇到的bug在if()判断中不要写if(a=true)哪怕你是写==呢(当然求求你比较时候不要写赋值了)bug在60和66行中<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title></title></head><style type="text/css"> * { margin: 0原创 2020-09-18 16:36:11 · 94 阅读 · 0 评论 -
开发中遇到的bug-由于未阻止冒泡事件导致数组清空
阻止冒泡事件的方法:1.常用浏览器:e.stoPPropergation();2.IE浏览器:e.cancelBubble=true;今天在写一个轨迹回放的demo时 里面的a标签同样冒泡触发了div上的点击事件,通过清除鼠标mousedown事件来实现动画效果。以下是动画代码在第107行进行了冒泡事件的清除。大家可以运行一下,蛮有意思的。<!DOCTYPE html><html lang="en"><head> <meta charset原创 2020-09-15 17:45:34 · 162 阅读 · 1 评论