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
s = set('hello,word') print(s) #set 方法 s = {'xiaoming', 'xiaoming', 'xiaoming1'} print(s) s.add('s') # 添加元素 s.clear(s) # 清空集合 s1 = s.copy(s) # 复制集合 s. ...
分类:
编程语言 时间:
2021-04-05 12:51:32
阅读次数:
0
一 for循环 #for循环可以循环任何序列的项目 for i in range(1,10): for j in range(1,i+1): print('%s*%s=%s'%(i,j,i*j),end="") print() 二 可变不可变类型 #for循环可以循环任何序列的项目 for i in ...
分类:
编程语言 时间:
2021-04-05 12:49:56
阅读次数:
0
这个问题主要是因为定义类的时候在类名后边加了个括号(); `public class Hello { public static void main(String[] args) { System.out.print("Hello World!"); System.out.println();//换 ...
分类:
其他好文 时间:
2021-04-05 12:26:42
阅读次数:
0
Django的视图 简单的视图 我们将在 myapp 创建一个简单的视图显示: "welcome to yiibai !" 查看如下的视图 ? from django.http import HttpResponse def hello(request): text = """<h1>welcome ...
分类:
其他好文 时间:
2021-04-05 12:18:07
阅读次数:
0
其他章节请看: vue 快速入门 系列 侦测数据的变化 - [基本实现] 在 初步认识 vue 这篇文章的 hello-world 示例中,我们通过修改数据(app.seen = false),页面中的一行文本(现在你看到我了)就不见了。 这里涉及到 Vue 一个重要特性:响应式系统。数据模型只是普 ...
分类:
其他好文 时间:
2021-04-05 12:12:18
阅读次数:
0
id(): 以数字形式查看内存地址 示例代码: s = 'hello' print(id(s)) # 139620916353264 View Code ...
分类:
其他好文 时间:
2021-04-05 11:55:25
阅读次数:
0
命令创建项目:create-react-app hello-model-router 安装router:yarn add react-app-router-dom 按照例子来理解: 3.1. React router介绍 路由: path什么路径,component跳转到那个组件上. import ...
分类:
其他好文 时间:
2021-04-02 13:10:28
阅读次数:
0
Tomcat下载 1.首先到tomcat官网找到download(https://tomcat.apache.org/download-90.cgi) 2.tomcat目录结构 3.tomcat学习模板 继承了HttpServlet通过response进行响应 http://localhost:80 ...
分类:
其他好文 时间:
2021-04-01 13:28:41
阅读次数:
0
Python学习(13)——元组 目标 元组的应用场景 定义元组 元组常见操作 一. 元组的应用场景 思考:如果想要存储多个数据,但是这些数据是不能修改的数据,怎么做? 答:列表?列表可以一次性存储多个数据,但是列表中的数据允许更改。 num_list = [10, 20, 30] num_list ...
分类:
编程语言 时间:
2021-04-01 13:08:49
阅读次数:
0