1:传值 隔代传值通过v-bind = “$attrs”. 2:传方法 v-on=“$listeners” 就可以在子组件调用父组件的方法 ,this.$emit("methodsFromParent") 3:子传父 slot 孩子: <slot name="aa" :foo="'foooooooo ...
分类:
其他好文 时间:
2021-04-06 14:17:01
阅读次数:
0
用python写数据库连接时要用到数据连接池于是就想到了DBUtils ,这个简单pip install DBUtile 安装完后写代码测试一下 from DBUtils.PooledDB import PooledDB Traceback (most recent call last): File ...
分类:
数据库 时间:
2021-04-02 13:02:54
阅读次数:
0
1.centos部署go环境 vim /etc/profile export PATH=$PATH:/usr/local/go/bin export GOROOT=/usr/local/go #go包的解压目录 export GOPATH=/opt/GOPATH #表示实际的工作目录 export ...
分类:
Web程序 时间:
2021-04-02 12:53:57
阅读次数:
0
用spyder运行正常,程序上传到服务器,添加计划任务,运行报错:ModuleNotFoundError: No module named 'selenium',实际上已经安装了。 搜索一番,有人说程序前面加上: import sys import os curPath = os.path.absp ...
分类:
其他好文 时间:
2021-03-29 11:49:17
阅读次数:
0
Function.prototype.mycall = function () { const [first, ...rest] = arguments; const ctx = first || window; ctx.func = this; const ret = ctx.func(...re ...
分类:
移动开发 时间:
2021-03-26 15:24:30
阅读次数:
0
Info和GroupInfo // the Info and GroupInfo structures are passed by the main // program in setup() to give information on how variables are // named and ...
分类:
其他好文 时间:
2021-03-26 15:21:47
阅读次数:
0
#!/bin/bash mkdir /etc/yum.repos.d/repo mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.ali ...
分类:
其他好文 时间:
2021-03-18 14:42:38
阅读次数:
0
错误介绍 在django项目中,当你从非项目文件夹导包时,在终端运行该文件报无该模块时,是否很困惑,因为当你直接重编辑器pycharm运行又是正常的。 错误情况 from xxx import xx ModuleNotFoundError: No module named "xxx" 错误原因 直接 ...
分类:
其他好文 时间:
2021-03-18 14:29:59
阅读次数:
0
在Vue3 的 RFCs文档中,Vue3中指令参数将支持动态参数。 基础示例 <div v-bind:[key]="value"></div> <div v-on:[event]="handler"></div> <div v-slot:[slotName]="slotProps"></div> 为 ...
分类:
其他好文 时间:
2021-03-17 14:44:15
阅读次数:
0
call和apply的应用场景: 判断数据类型: Object.prototype.toString用来判断类型再合适不过,借用它我们几乎可以判断所有类型的数据: function isType(data, type) { const typeObj = { '[object String]': ' ...
分类:
移动开发 时间:
2021-03-17 14:28:08
阅读次数:
0