node-index
node-index copied to clipboard
学习笔记、博文、简书、工作日常踩坑记录以及一些独立作品的汇总目录
Bumps [jinja2](https://github.com/pallets/jinja) from 2.8 to 2.11.3. Release notes Sourced from jinja2's releases. 2.11.3 This contains a fix for a speed issue with the urlize filter. urlize is likely to be...
Bumps [flask](https://github.com/pallets/flask) from 0.10.1 to 2.2.5. Release notes Sourced from flask's releases. 2.2.5 This is a security fix release for the 2.2.x release branch. Note that 2.3.x is the currently...
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 0.11.10 to 2.2.3. Release notes Sourced from werkzeug's releases. 2.2.3 This is a fix release for the 2.2.x release branch. Changes: https://werkzeug.palletsprojects.com/en/2.2.x/changes/#version-2-2-3 Milestone: https://github.com/pallets/werkzeug/milestone/26?closed=1 This release contains...
Bumps [jinja2](https://github.com/pallets/jinja) from 2.8 to 2.11.3. Release notes Sourced from jinja2's releases. 2.11.3 This contains a fix for a speed issue with the urlize filter. urlize is likely to be...
Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.0.14 to 1.3.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
## Context Context 提供了一个无需为每层组件手动添加 props,就能在组件树间进行数据传递的方法。 - [基础使用](#%E5%9F%BA%E7%A1%80%E4%BD%BF%E7%94%A8) - [使用场景问题](#%E4%BD%BF%E7%94%A8%E5%9C%BA%E6%99%AF%E9%97%AE%E9%A2%98) - [重要API](#%E9%87%8D%E8%A6%81api) * [React.createContext](#reactcreatecontext) * [Context.Provider](#contextprovider) * [Class.contextType](#classcontexttype) * [Context.Consumer](#contextconsumer) * [Context.displayName](#contextdisplayname) - [使用场景](#%E4%BD%BF%E7%94%A8%E5%9C%BA%E6%99%AF) * [动态更新Context](#%E5%8A%A8%E6%80%81%E6%9B%B4%E6%96%B0context) * [在嵌套组件中更新 Context](#%E5%9C%A8%E5%B5%8C%E5%A5%97%E7%BB%84%E4%BB%B6%E4%B8%AD%E6%9B%B4%E6%96%B0-context) * [消费多个...
## useImperativeHandle useImperativeHandle 是 hook 中提供的允许我们 ref 一个function component 的方案,也是 Hook 在 TypeScript 中使用最复杂的场景。 useImperativeHandle 可以让你在使用 ref 时自定义暴露给父组件的实例值。 在大多数情况下,应当避免使用 ref 这样的命令式代码。useImperativeHandle 应当与 forwardRef 一起使用: ```typescript jsx function FancyInput(props, ref) {...
# 掘金扩展插件 最近学习谷歌插件,学以致用,所以顺手就搓出来了一个插件: **支持一键将当前阅读的掘金文档复制为 Markdown** 话不多说, 直接上墙:  ## 使用本插件 按照以下步骤来即可 1. 访问代码源码 - https://github.com/pro-collection/extension-tools/tree/master/apps/juejin 2. 下载代码 3. 导入 crx 文件 或者 直接导入编译后的产物代码 3.1. 访问 chrome://extensions/ , 然后开启开发者模式  3.2...
不需要有开发经验, 但是有一定的浏览器插件的概念。 基本入门概念可以参考: https://juejin.cn/post/7362046148708679715 实现非常简单,只需要最基础的 css、js 概念就可以。 先效果上墙  ## 先建立一个 manifest.json 文件 ```json { "manifest_version": 3, "name": "Hello Extensions of the world", "description": "hello world", "version": "1.0", "action": {...
我们可以通过谷歌浏览器插件,在别人的网站上注入自己的脚本。 我们叫这个脚本为 `Content Scripts` 。 ## content_scripts 到底有多强 就这么说吧, 他可以直接操作任意页面的 dom , 所以其强大可想而知了吧。 内容脚本在将扩展程序文件声明为可通过网络访问的资源后,便可访问它们。它们可以直接访问以下扩展程序 API: - dom - i18n - storage - runtime.connect() - runtime.getManifest() - runtime.getURL() - runtime.id -...