组件和属性(props) 函数式组件: 渲染一个组件: 注意:组件名总是大写字母开始,比如 Welcome。 组件名字可以直接用作html标签,比如<Welcome /> ReactDom.render() 注意:组件必须返回一个单独的根元素。这就是为什么我们添加一个 <div> 来包含所有 <We ...
分类:
其他好文 时间:
2018-06-12 16:22:08
阅读次数:
179
1.import timedef index(): print('welcome to index') time.sleep(3) return 123 # 被装饰对象带返回值def home(name): # 带上参数的被装饰对象 print('welcome %s to home page' % ...
分类:
其他好文 时间:
2018-06-11 22:12:25
阅读次数:
161
解决方法: 1.查看是不是mysql权限的问题 (默认安装方式为 yum -y install mysql) 转到 /etc/rc.d/init.d/目录下 [root@xxx init.d]# mysqld status2018-06-11 15:20:47 0 [Warning] TIMESTA ...
分类:
数据库 时间:
2018-06-11 17:20:55
阅读次数:
171
Note I use English to complete my writing, if you find it terrible, "you can refer this post." Welcome "Welcome to my personal website" , in this hell ...
分类:
其他好文 时间:
2018-06-10 15:15:55
阅读次数:
195
python while循环 while 语句: 执行语句 结束条件 for 循环 for 变量 in range(起始值,终止值,步长): 循环语句 python注释中获得输入信息的几种方式 方法1: 变量1 = input(“A”) 变量2 = input(“B”) info = ''' C:% ...
分类:
编程语言 时间:
2018-06-09 17:57:34
阅读次数:
131
1.使用字典和列表嵌套结构表示多条记录2.添加信息时,直接输入一句话,进行解析拆解,记录时间与事件#!/user/bin/envPython#_*_coding:utf-8_*_#51memo.py#author:大宝dayday见__author__=‘大宝dayday见‘desc=‘51备忘录‘.center(30,‘-‘)print(desc)welcome=‘welcome‘print(f
分类:
编程语言 时间:
2018-06-09 13:59:56
阅读次数:
386
博客园 [Markdown语法教学链接] (https://www.cnblogs.com/chimoxuanzhi/p/8977834.html) Welcome to MarkdownPad 2 MarkdownPad is a full featured Markdown editor for ...
分类:
其他好文 时间:
2018-06-09 00:51:31
阅读次数:
244
一、 1、 注意本地变量和类里的成员变量。 ...
分类:
编程语言 时间:
2018-06-08 23:19:19
阅读次数:
362
Week 3 History: The Web Makes it Easy to Use Welcome to week 3! This is our fourth and final week of History where we make the connection from those e ...
分类:
Web程序 时间:
2018-06-08 18:31:56
阅读次数:
212
<frameset cols="12,88" frameborder="no" noresize borders="no" framespacing="0"> <frame name="leftFrame" noresize Borders="no" src="jsp/index/left.jsp" ...
分类:
其他好文 时间:
2018-06-07 22:59:58
阅读次数:
230