问题: 当我在给某一张表加上外键搜索的时候,会出现 TypeError: Related Field got invalid lookup: icontains 问题原因: a 表关联 b表,也就是说a表有外键关联b表,我们只需要在 b表中admin注册时候在admin类中添加外键搜索功能,那么在创 ...
分类:
其他好文 时间:
2019-08-31 16:52:36
阅读次数:
78
1.ES6可以用let定义块级作用域变量,只在{ }内有效 2.let没有变量提升 用let声明的变量,不存在变量提升。而且要求必须 等let声明语句执行完之后,变量才能使用,不然会报Uncaught ReferenceError错误。 3.暂时性死区 在代码块内,使用let命令声明变量之前,该变量 ...
分类:
Web程序 时间:
2019-08-30 13:49:56
阅读次数:
96
在vue 项目使用严格开发时,引用一些不规范的js时会报 Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the ar ...
分类:
其他好文 时间:
2019-08-26 19:21:44
阅读次数:
330
第二章 Python入门 2.1 环境安装 2.1.1 下载解释器: py2.7.16 (2020年官方不再维护) py3.6.8 (推荐安装) 1、下载解释器一定去官网下载,https://www.python.org 2、选择 python3 的版本下载 ? 3、下载 python3 的64位安 ...
分类:
编程语言 时间:
2019-08-26 09:20:17
阅读次数:
134
递归函数 理解:一个函数在内部调用自身本身,这个函数就是递归函数。 优点:递归函数的优点是定义简单,逻辑清晰。理论上,所有的递归函数都可以写成循环的方式,但循环的逻辑不如递归清晰。 递归函数实例: "阶乘" : 代码: 阶乘 递归函数实现 : 例3的阶乘: 1 1 2 3 def factorial ...
分类:
编程语言 时间:
2019-08-21 23:00:59
阅读次数:
101
question is caused by react version, update your react version, it will be ok.use "npm update react" and ""npm update react-dom"" //before:"react": "^ ...
分类:
其他好文 时间:
2019-08-20 23:54:35
阅读次数:
177
在写Python代码的时候,遇到了“TypeError: a bytes-like object is required, not 'str'”错误,此处实验机器的Python环境为Python 3.6.6,如下所示 >>> import base64 >>> db_user_encode=base... ...
分类:
其他好文 时间:
2019-08-20 12:52:31
阅读次数:
163
1. 问题: 使用sort排序,代码如下: db.test.find().sort({"name" : 1, "age" : 1}) 遇到如下异常: TypeError: if no direction is specified, key_or_list must be an instance of ...
分类:
其他好文 时间:
2019-08-18 16:00:46
阅读次数:
101
话说ionic是真坑,文档质量就很差,版本兼容性也不好。最近要搞ionic sqlite开发,期间遇到问题: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'split' of undefinedTypeErr ...
分类:
数据库 时间:
2019-08-17 21:39:21
阅读次数:
162
1 template里面的元素必须以一个根元素包裹,否则只会显示第一个元素。 2 v-on:事件名 必须小写 3 实例化Vue的data是对象,组件的data是函数返回对象。 4 不要在选项属性或回调上使用箭头函数。 因为箭头函数并没有 this,this 会作为变量一直向上级词法作用域查找,直至找 ...
分类:
其他好文 时间:
2019-08-15 21:12:51
阅读次数:
86