上一页 1 ··· 3 4 5 6 7 8 9 下一页

2021年3月17日

数组常用api

摘要: JavaScript常用api Array 语法 [element0, element1, ..., elementN ] new Array ( element0 , element1 [ , ... [ , elementN ] ] ) new Array ( arrayLength ) 属性 阅读全文

posted @ 2021-03-17 08:18 铃之森 阅读(95) 评论(0) 推荐(0) 编辑

2021年3月14日

Hoot新特性

摘要: 特性State Hook components/Demo1.jsx import React, {useState} from "react"; // export default class Demo1 extends React.Component{ // state = { // count: 阅读全文

posted @ 2021-03-14 22:50 铃之森 阅读(109) 评论(0) 推荐(0) 编辑

2021年3月12日

react项目实战--简单登录注册

摘要: 补充: 在windows系统中查看,进入到需要查看的目录后,按住shift键,然后单击鼠标右键,选择“在此处打开命令窗口”,输入命令 目录下的所有目录:tree 目录下的所有目录和文件:tree /f 项目目录树 src │ index.js │ routes.js │ ├─actions │ si 阅读全文

posted @ 2021-03-12 00:27 铃之森 阅读(894) 评论(0) 推荐(0) 编辑

2021年3月11日

react常遇到的坑(新手)

摘要: 错误类型1:在类的component后加(),看作是方法 错误:class App extends React.Component() 解决办法:React.Component是一个对象,更改成class App extends React.Component 持续更新中...... 阅读全文

posted @ 2021-03-11 22:20 铃之森 阅读(72) 评论(0) 推荐(0) 编辑

2021年3月10日

npm常用命令

摘要: 查看全局安装模块路径 命令: npm root -g 查看所有全局安装的模块 命令: npm ls –g 查看部分npm默认设置 命令: npm config ls 查看全部npm默认设置 命令: npm config ls –l 查看全局安装过的模块 命令: npm list -g --depth 阅读全文

posted @ 2021-03-10 23:43 铃之森 阅读(98) 评论(0) 推荐(0) 编辑

2021年3月2日

React进阶

摘要: 定时器、网络请求、事件监听,在组件被销毁前都应该得到相应的处理 App.js import React from 'react'; import Demo1 from './components/Demo1/parent'; import Home from './components/Home'; 阅读全文

posted @ 2021-03-02 00:02 铃之森 阅读(52) 评论(0) 推荐(0) 编辑

2021年2月17日

React-Router路由配置

摘要: React-Router 参考学习地址: https://reactrouter.com/web/guides/quick-start // 5 的版本主要是针对 react Hook 做更好的支持 安装 npm install react-router-dom --save 路由的作用 单页面应用 阅读全文

posted @ 2021-02-17 23:28 铃之森 阅读(4072) 评论(0) 推荐(0) 编辑

2021年2月12日

Fetch请求

摘要: get请求 App.js import React from 'react'; import ProxyDemo from './ProxyDemo'; export default class App extends React.Component { constructor(props) { s 阅读全文

posted @ 2021-02-12 19:58 铃之森 阅读(149) 评论(0) 推荐(0) 编辑

2021年2月1日

redux学习笔记

摘要: 学习参考链接 中文官方文档:http://cn.redux.js.org/ 阮一峰教程:http://www.ruanyifeng.com/blog/2016/09/redux_tutorial_part_one_basic_usages.html 基础知识点: React,状态数据,state 组 阅读全文

posted @ 2021-02-01 00:20 铃之森 阅读(86) 评论(0) 推荐(0) 编辑

2021年1月30日

React基础知识

摘要: JSX语法介绍 JSX语法:JavaScript + XML语法(HTML) 解读jsx语法:遇到<>安装HTML语法解析,遇到按照JavaScript const element = <h1>Hello, world!</h1>; 元素渲染 function tick() { const elem 阅读全文

posted @ 2021-01-30 11:38 铃之森 阅读(93) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 下一页

导航