![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习笔记
香蕉你个波娜娜
这个作者很懒,什么都没留下…
展开
-
TypeScript + React
// type script definitiontype GreetProps = { name:string messageCount: number isLoggedin:boolean name:{ first:string last:string }}// array propstype PersonList = { name:{ first:string, last:string }[]}// type designatedtype StatusPr原创 2022-04-20 01:30:37 · 741 阅读 · 0 评论 -
React Tutorial (updating)
组件组件的基本写法class ShoppingCart extends React.component { render(){ return ( <div>Hello</div> ); }}JS子类的构造函数中, 必须调用super方法constructor(props) { super(props); this.state = { value: null; }}state 提升当我们需要同时获取多个子组件数据,或者两个组件需原创 2022-04-18 12:09:48 · 705 阅读 · 0 评论 -
Github 命令汇总
【代码】Github 命令汇总原创 2022-04-14 10:03:44 · 422 阅读 · 0 评论 -
JavaScrip语法(更新中)
函数在array前插入元素 --- unshif t( )//array首部插入值//unshift同时传入多个参数的话,会按照传参数的顺序直接插入//所以这和一个参数一个参数传的不一样!let arr = [4, 5, 6];arr.unshift(1, 2, 3);//[1,2,3,4,5,6]结合两个数组array.concat( ); const array1 = ['a', 'b', 'c']; const array2 = array1.concat(3, [5,7原创 2021-08-24 11:50:28 · 63 阅读 · 0 评论 -
html学习笔记
标签图片标签<img src="name.jpg" alt = "xx" title= "xx"/>超链接标签,target为"_self"时在当前页面打开超链接,为"_blank"时在新的页面打开链接<a href="https://www.baidu.com" target = "_blank">百度</a>...原创 2021-08-17 21:35:37 · 32 阅读 · 0 评论