摘要: /** * 子组件如何更改父组件的state呢? * 父组件传递下来的props不满足要求,往往需要修改 * * * Author: shujun * Date: 2020-10-25 */ import React from 'react'; export default class Father 阅读全文
posted @ 2020-10-31 07:53 shujun_code 阅读(4650) 评论(0) 推荐(0)
摘要: Web http.server 最简单的,一句命令搞定: # python -m http.server 8001 然后一个常见的文件目录下载竟然就搞定了,太神奇了; WSGI接口 Web Server Gateway Interface: from wsgiref.simple_server im 阅读全文
posted @ 2020-09-26 10:50 shujun_code 阅读(125) 评论(0) 推荐(0)
摘要: /** * 1. js判断对象的好方法 * 2. 判断是否为json格式化数据 * * Author: shujun * Date: 2020-8-09 */ import {print} from './utils'; /** * 1. js判断对象的好方法; 基本类型就用typeof * // 阅读全文
posted @ 2020-08-30 10:31 shujun_code 阅读(1887) 评论(0) 推荐(0)
摘要: /** * 一个很奇怪的现象,js为啥搞这么多循环方式,五花八门 不过感觉只要掌握for && map就好 for foreach while some every filter map 对比点: 1. 如何退出循环 return && break 2. 每个函数的侧重点是干吗的 author: s 阅读全文
posted @ 2020-08-15 21:50 shujun_code 阅读(157) 评论(0) 推荐(0)