错误合集
写bug,改bug
VIXCITY
这个作者很懒,什么都没留下…
展开
-
异常:TypeError: ‘caller‘, ‘callee‘, and ‘arguments‘ properties may not be accessed on strict mode func
报错的异常说明了用到了’caller’,‘callee’,and 'arguments’这些东西与严格模式冲突了。既然找到原因了,那么我们可以顺路来看看,严格模式的时候,MDN的文档是怎么说的。他给出的解决方案是给函数表达式一个名字或者使用一个函数声明。还是老样子,网上的大部分查到的解决bug的方式都没用。webpack 打包的时候,项目默认是严格模式的。但是整理了一下,发现他们共同的问题的原因是。今天我在给博客添加樱花飘落的特效的时候。那么我们就给里面的函数一个声明。找到了报错的函数是这个方法。原创 2023-01-05 15:33:43 · 11466 阅读 · 0 评论 -
页面[components/listCard/listCard]错误: TypeError: Cannot read property ‘name‘ of undefined 问题解决
页面[components/listCard/listCard]错误: TypeError: Cannot read property ‘name‘ of undefined 问题解决原创 2023-01-04 15:03:06 · 746 阅读 · 0 评论 -
ES6 数组方法的一些坑
ES6 新出的数组方法的一些坑原创 2022-12-19 17:07:24 · 142 阅读 · 0 评论 -
AttributeError: module ‘pandas‘ has no attribute ‘Series‘解决办法
AttributeError: module 'pandas' has no attribute 'Series'解决办法pandas是我们进行数据处理和分析时最常用的包之一,但是有时候出现AttributeError: module ‘pandas’ has no attribute 'Series’这样的错误↓AttributeError: module ‘pandas’ has no attribute ‘Series’(1)包没有安装成功;(2)自己的文件名命名有问题;我是自己的文件命名和转载 2020-11-10 14:40:23 · 1429 阅读 · 0 评论 -
python关于base64编码的坑
python关于base64编码有个坑,如果是在网页中直接转换的话,他会有一个b’打头的东西,如果需要纯正的base64编码内容的话,我们就需要把b’给去掉,找到个方法,就是把b64编码重新定义成改成常用的utf-8格式的就可以了b64 = str(原来的b64, ‘utf8’)解决问题的链接...原创 2020-10-28 15:03:33 · 517 阅读 · 0 评论 -
爬虫中文乱码解决方法
今天练习小爬虫爬取网页壁纸,发现获取到图片title属性是中文乱码,去网上找,发现方法有如下两种,特此记录,谨防下次忘记方法1(节点↓) (节点↓)imgName = imgName.encode(‘iso-8859-1’).decode(‘gbk’)方法2response = requests.get(url)response.encoding='utf-8’或者response.encoding=‘gbk’方法2传送门...原创 2020-10-27 13:46:48 · 201 阅读 · 0 评论 -
git 报错之 You do not have permission to push to the repository via HTTPS
git推代码报错"You do not have permission to push to the repository via HTTPS"问题描述:原因是权限不足我的原因是因为在公司电脑上想要登录自己的git上传自己的项目方法是以下(一)进入控制面板(二)选择用户账户(三)选择管理你的凭据(四)选择Windows凭据(五)选择git保存的用户信息(六)选择编辑或者进行删除操作(七)完成或者输入以下命令,我个人用上面的方法成功执行 git config --s转载 2020-11-02 10:14:31 · 693 阅读 · 0 评论