0
点赞
收藏
分享

微信扫一扫

注入

谁知我新 2022-12-24 阅读 75

annotation 注解, decorator(修饰器)
3-2. 执行时间:
4. 好处
4-1 简洁
4-2 Proxy/Reflect
@Beans
代码如下:
export function Bean(beanName: string): Function {
return (classConstructor: any) => {
let props = getOrCreateProps(classConstructor);
props.beanName = beanName;
};
}
解释: 给 props 增加一个 beanName
@Autowired
代码如下
export function Autowired(name?: string): Function {
return (target: any, propertyKey: string, descriptor: PropertyDescriptor) => {
autowiredFunc(target, name, false, target, propertyKey, null);
};
}
解释: 给 pros 中的 agClassAttributes(数组) 增加内容
{
attributeName: methodOrAttributeName,
beanName: name,
optional: optional
}
beans 豆子 // 一颗一颗,不可分割
seeds 种子, 发芽
engine 引擎 // 发动机, 提供动力
1


问题:
1.信息传递都依靠 faq
2. bug不知道谁改
- debug 分享
catch 断点
- 希明分享
react hooks
useEffect
1. hooks 性能低一些 (实际的项目上评比)
2. useCallback
3. useMemo, 减少渲染, 提高性能
4. useCallback 和 useMemo 对比
- 可以互相使用
- 需要多调用一次
5. useRef 的写法
跨生命周期存储
6. useEffect
类似生命周期
-componentDidMount
-不允许直接传入异步函数
-非⻚面间传递, 不建议 mobx
7.useState
8. createContext, useContext
useStore.box
css 分享
1.global 覆写 css
问题:
1. css 的覆写最好增加自己的包裹
2. mobx 中的数据, 怎么让 useEffect 去响应?
1


产品&项目总结 by 王顺
工具分享: vercel
问题与总结:
1.元数据不理解, 具体含义
2.渲染的线, presenter 线 tsx
new Presenter => tsx => 初始化其他的presenter=>子tsx
3.webpack 插件待分享
4.mobx, 可以尝试写一个观察者模式的mobx
5.react, 简易 react
6.eca的定义解释, reactFieldComponentProps等的理解
7.go 的理解
git 分享 by 张⻘松
1.git ? 链表^
1.git HEAD^1
2.远程/本地
1.远程与本地, 都是分布式
3.git reset
1.mixed
2.hard
3.soft
4.git 常用操作
1.--mixed
2.git add --soft
3.git commit
4.git push
5.git merge/git rebase
5.git 找回&查找
1.git reset
2.git reflog
3.git log --grep --author
6.git 统计
1.统计行数

举报

相关推荐

0 条评论