06 2022 档案

摘要:1. 用Docker部署的容器,如果需要查找接口报错的原因docker ps 获取容器ID[CONTAINER ID]docker logs -f CONTAINER ID然后就请求接口 阅读全文
posted @ 2022-06-30 18:03 一路向北√ 阅读(17) 评论(0) 推荐(0) 编辑
摘要:在A组件中使用了B组件 如果想在A组件的props中验证 B组件的PropTypes ,那么可以...B.propTypes A.propTypes = { children: PropTypes.node.isRequired, ...B.propTypes, }; 阅读全文
posted @ 2022-06-22 17:45 一路向北√ 阅读(52) 评论(0) 推荐(0) 编辑
摘要:不推荐的API document.write 2.1.2 推迟执行脚本 <script>有一个叫defer的属性 这个属性表示: 脚本在执行的时候不会改变页面的结构。也就是说 脚本会被延迟到整个页面都解析完成后再运行,相当于告诉浏览器: 立即下载,但延迟执行 <script defer scr="e 阅读全文
posted @ 2022-06-19 22:00 一路向北√ 阅读(275) 评论(0) 推荐(0) 编辑
摘要:使用函数的方式传给React组件, 执行函数后, 会得到一个promise, 通过then可以获取到js文件中的内容 parent.js import React from 'react'; import Children from './children'; const App = () => ( 阅读全文
posted @ 2022-06-16 19:21 一路向北√ 阅读(410) 评论(0) 推荐(0) 编辑
摘要:import { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; const Delayed = ({ children, delay }) => { const [isShow, setIsShow] 阅读全文
posted @ 2022-06-07 18:12 一路向北√ 阅读(29) 评论(0) 推荐(0) 编辑

web应用开发&研究 -

业精于勤而荒于嬉。

工作,使我快乐。


Font Awesome | Respond.js | Bootstrap中文网

点击右上角即可分享
微信分享提示