Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
6f625997
Commit
6f625997
authored
Dec 12, 2019
by
786817560
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'删除多余文件'
parent
f1104f62
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
137 additions
and
54 deletions
+137
-54
12-7.md
12-7.md
+0
-11
enclosure.vue
src/pages/userBindNew/org/enclosure.vue
+137
-43
No files found.
12-7.md
deleted
100644 → 0
View file @
f1104f62
### dom操作,一次性插入100个节点,和我分100次插入1个节点,哪个性能更高?
**答案**
: 一次性插入100个节点性能更好。
**理解**
:一次性插入100个,只对dom节点进行了一次操作,而分100次插入则操作了100次dom节点。插入节点时dom树每次会重新计算,生成新的dom树,渲染树也会跟着改变。浏览器会使渲染树中受影响的部分失效,重新绘制,因此也会进行100次重绘。影响性能。(也不知是影响cpu? Gpu? 还是浏览器--)。
### 问题
-
ssr从服务器返回字符串,进行HTML渲染,是怎么返回的?以何种方式返回的?
-
js解析主线程跟GUI渲染线程存在优先级吗?
src/pages/userBindNew/org/enclosure.vue
View file @
6f625997
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment