-
### Versions
I can reproduce this bug in Seed 0.9
I cannot reproduce this bug in Seed 0.8
### In short:
1. In `view` we return something like `div![el_ref(&some_elref), div!["Some text"]]`
2.…
-
校招面试题
dom
事件冒泡、捕获;事件委托,如何在捕获阶段监听事件
如何获取页面上存在多少种html元素
dom操作需要注意的点,如何避免性能问题
js 核心
this指向,箭头函数this指向,Vue为什么不用bind(this)
如何判断变量是数组、对象、函数、数字、NAN、字符串
原性链,作用域,构造函数,原型,闭包,gc
事件循环,队列
setTimeout
…
-
# 虚拟DOM
- jQuery和 vue.js的区别?
> jQuery是命令式操作DOM,vue.js是声明式操作DOM。命令式是通过命令每一步去做,达到想要的效果。声明式是告诉对方想要的效果,不需要关心如何去做。
- 虚拟DOM运作原理?
> 通过状态生成一个虚拟节点树,然后使用虚拟节点树进行渲染。在渲染之前,会使用新生成的虚拟节点树和上一次生成的虚拟节点树进行对比,…
-
## 介绍
> 官方地址
https://github.com/snabbdom/snabbdom
> 官方说明
Snabbdom: A virtual DOM library with focus on simplicity, modularity, powerful features and performance.
一个虚拟DOM库,重点放在简单性,模块化,强大…
-
add to utils:
`from typing import Optional, List, Set, Union, Callable, Dict`
```
"""Keyboard and Mouse module."""
"""US Keyboard Definition."""
key_definitions = {
'0': {'keyCode': 48…
-
React 在 `v16` 引入了[众多新特性](React16新特征总览),其中最核心的更新属于引入了新的核心架构 Fiber (Fiber reconciler,代替之前的 Stack reconciler),本文主要是对 fiber 的学习过程的记录。
### 一、为什么需要 Fiber ?
长话短说就是:**性能**。
> In its current impleme…
-
In our app we need to know the dimensions of a specific HTML node after it's inserted into the native DOM. React provides [Life Cycle Methods](http://facebook.github.io/react/docs/component-specs.html…
-
## Details
**Target Platform: android**
**Devices: Huawei p20 lite (android version 9)**
I'm having a problem using the official webview plugin on android (on ios everything is fine…
-
### React出现的历史
- 传统`DOM API` 关注太多的细节
- 优点: `React` 始终刷新整体页面
**React**
- 一个新概念: `组件`
- 4个必须api
- 单向数据流
- 完善的错误提示
> Flux 架构: 单向数据流
衍生产品: `Redux Mobx`
---
### 以组件方式考虑 UI构建
```
clas…
-
If anyone is building an app with mercury, whether open source or private i would love to hear about it.
I want to start gathering a list of websites / projects build with it
Feel free to reply even…