"JavaScript Framework Design (2nd Edition)" PDF

Download link: https://pan.baidu.com/s/1mXIykioki_dmc3T2NrL2fQ Password: iwrz

  • Publisher:  People's Posts and Telecommunications Press; 2nd Edition (September 1, 2017)
  • Paperback:  457 pages
  • Language:  Simplified Chinese
  • Format:  16
  • ISBN: 7115464294, 9787115464293
  • Barcode:  9787115464293
  • Product size:  23 x 18.6 x 2 cm
  • Item weight:  780 g
  • Brand:  People's Posts and Telecommunications Publishing House
  • ASIN: B07574N7Y2

Editor's Choice

Guide readers to understand the excellent frameworks created by masters in the past 10 years and the admirable whimsy 
in them. Understand JavaScript more deeply and thoroughly, appreciate the beauty of architecture and design of jQuery and other libraries, and 
help developers build their own front-end framework

About the Author

Zhong Qincheng's online name is Situ Zhengmei, a JavaScript expert, a Japanese engineer who aspires to be an archaeologist, a "magician" who travels between two-dimensional and binary, has done pottery, wrote novels, and dabbled in Java, Ruby, JavaScript, 3 Complete this book!

content

Chapter 1 Seed Module 1
1.1 Modularization 1
1.2 Function Introduction 2
1.3 Object Expansion 3
1.4 Arrayization 5
1.5 Type Determination 8
1.5.1 type12
1.5.2 isPlainObject13
1.5.3 isWindow14
1.5.4 isNumeric15
1.5.5 isArrayLike16
1.6 domReady17
1.7 Conflict-Free Handling 20
1.8 Summary 20
Chapter 2 Language Modules 21
2.1 String Expansion and Repair 22
2.1.1 repeat24
2.1.2 byteLen26
2.1.3 pad30
2.1.4 quote32
2.1.5 trim and whitespace 33
2.2 Array expansion and repair 37
2.3 Numerical extensions and fixes 45
2.4 Function extensions and fixes 48
2.5 Date extensions and fixes 53
Chapter 3 Browser sniffing and feature detection 57
3.1 Browser determination 58
3.2 document.all anecdotes 61
3.3 Event support detection Test 62
3.4 Style Support Detection 65
3.5 The Meaning of Some Common Features of jQuery 65
Chapter 4 Class Factory 68
4.1 JavaScript's support for classes 68
4.2 Implementation of various class factories 73
4.2.1 A rather sophisticated library—P.js74
4.2.2 JS.Class76
4.2.3 simple—inheritance78
4.2.4 A library that embodies the flexibility of JavaScript—def. js81
4.3 Attack property descriptors 85
4.4 True classes come 93
Chapter 5 selector engine 102
5.1 Browser built-in method for finding elements 103
5.2 getElementsBySelector105
5.3 Knowledge points involved in selector engine 108
5.3.1 Relation selector 109
5.3. 2 Pseudo-classes 111
5.3.3 Other concepts 113
5.4 Common functions involved in selector engines 114
5.4.1 isXML114
5.4.2 contains115
5.4.3 Node sorting and deduplication 117
5.4.4 Cutter 121
5.4.5 Attribute selectors for whitespace Character Matching Strategies 123
5.4.6 Subelement Filtering Pseudo-Class Decomposition and Matching 125
5.5 Sizzle Engine 127
5.6 Summary 135
Chapter 6 Node Modules 136
6.1 Node Creation 136
6.2 Node Insertion 142
6.3 Node Replication 144
6.4 Node Migration divide by 148
6.5 Node removal callback implementation 151
6.5.1 MutationObserver 152
6.5.2 More candidates 153
6.6 Compatible processing of innerHTML, innerText, outerHTML, outerText 157
6.7 Template container element 161
6.8 iframe element 162
6.9 Summary 165
Chapter 7 Data caching module 166
7.1 jQuery's 1st Generation Caching System 166
7.2 jQuery's 2nd Generation Caching System 172
7.3 jQuery's 3rd Generation Caching System 175
7.4 Capacity-Limited Caching Systems 176
7.5 Local Storage Systems 178
7.6 Summary 184
Chapter 8 Style Modules 185
8.1 Main structure 186
8.2 Correction of style names 189
8.3 Special handling of individual styles 190
8.3.1 opacity190
8.3.2 user—select192
8.3.3 background—position192
8.3.4 z—index193
8.3.5 Box model 194
8.3.6 Elements Dimensions 195
8.3.7 Element visibility 201
8.3.8 Element coordinates 203
8.4 Element scroll bar coordinates 209
8.5 Summary 210
Chapter 9 Properties module 211
9.1 Attributes of Element Nodes 212
9.2 How to Distinguish Inherent Attributes from Custom Attributes 214
9.3 How to Determine Whether Browsers Distinguish Inherent Attributes from Custom Attributes 216
9.4 3 Evolutions of IE's Attribute System 217
9.5 ClassName Operations 218
9.6 Prototype.js Attribute System 221
9.7 jQuery's Attribute System 226
9.8 Avalon's Attribute System 229
9.9 Value Operation 232
9.10 Summary 235
Chapter 10 Event System on PC 236
10.1 Introduction to Native API 238
10.2 On××× Binding Defects 239
10.3 attachEvent Defects 239
10.4 Defects of addEventListener 241
10.5 handleEvent and EventListenerOptions242
10.6 DeanEdward addEvent.js source code analysis 243
10.7 jQuery's event system 246
10.8 avalon2's event system 248
10.9 Summary 254
Chapter 11 Mobile event system 255
11.1 Touch events 256
11.2 gesture event 258
11.3 tap event 259
11.4 press event 268
11.5 swipe event 271
11.6 pinch events 273
11.7 Drag and drop events 276
11.8 rotate events 279
11.9 Summary 282
Chapter 12 Asynchronous model 283
12.1 setTimeout and setInterval 284
12.2 The world before Promise 287
12.2.1 Callbacks287
12.2.2 Observer mode observers287
12.2 .3 Event mechanism listeners289
12.3 JSDeferred milestone 289
12.4 jQueryDeferred preacher 299
12.5 es6Promise first standard model 303
12.5.1 Constructor: Promise (executor) 308
12.5.2Promise.resolve/reject309
12.5.3Promise.all/race309
12.5.4Promise #then/catch310
12.5.5Promise#resolve/reject310
12.5.6Promsie#notify311
12.5.7nextTick312
12.6 es6 generator transitioner 314
12.6.1 Keyword yield315
12.6.2 The difference between yield* and yield 316
12.6.3 Exception handling 317
12.7 The ultimate solution of es7async/await 319
12.8 Summary 321
Chapter 13 Data interaction module 323
13.1 Ajax overview 323
13.2 Elegantly obtain XMLHttpRequest object 324
13.3 Event binding and state maintenance of XMLHttpRequest object 326
13.4 Send request and data 328
13.5 Receive data 330
13.6 Upload File 333
13.7 jQuery.ajax335
13.8 fetch, Next Generation Ajax340
Chapter 14 Animation Engine 344
14.1 Principle of Animation 344
14.2 Easing Formula 347
14.3 jQuery.animate349 14.4 massFramework
JavaScript Based Animation Engine 350
14.5 requestAnimationFrame358
14.6 CSS3transition364
14.7 CSS3
CSS Animation Engines 370
Chapter 15 MVVM
378 15.1 Front-end Templates (Static Templates) 378
15.2 Dynamic Templates for MVVM 388
15.2.1 Evaluation Functions 390
15.2.2 Refresh Functions 395
15.3 ViewModel 399
15.3.1 Proxy400 15.3.2
Reflect401
15.3.3 Avalon's ViewModel Design 403
15.3.4 Angular's ViewModel Design 407
15.4 React and Virtual DOM412
15.4.1 React's Diff Algorithm 415
15.4.2 React's Multi-End Rendering 417
15.5 Performance Wall and Complexity Wall 417
Chapter 16 Components 422
16.1 The jQuery Era Component Scheme 422
16.2 Avalon2 Component Scheme 427
16.2.1 Component Containers 429
16.2.2 Configuration Objects 430
16.2.3 Slot Mechanism 430
16.2.4 SoleSlot Mechanism 431 16.2.5
Lifecycle 432
16.3 React's component scheme 433
16.3.1 Various definitions of
React components 433 16.3.2 The life cycle of React components 439
16.3.3 Communication between React components 441
16.3.4 Classification of React components 445
16.4 Front-end routing 446
16.4.1 storage447
16.4.2 mmHistory448
16.4.3 mmRouter454 Easter egg 458

abstract

Copyright Page:



Illustration:




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325688690&siteId=291194637