├── .gitignore ├── static ├── img │ ├── forkgithub.png │ ├── 102.java │ │ ├── java1.png │ │ ├── java2.png │ │ ├── java3.png │ │ ├── java4.png │ │ ├── java5.png │ │ ├── java6.png │ │ ├── java7.png │ │ ├── java8.png │ │ ├── java9.png │ │ ├── java10.png │ │ ├── java11.png │ │ ├── java12.png │ │ ├── classobject.jpg │ │ ├── datatypeandarray.jpg │ │ └── variableandoperator.jpg │ ├── vercel_domain.png │ ├── 101.1.monitor │ │ ├── lcp.jpg │ │ ├── rtttime2.jpg │ │ ├── baidurender.png │ │ ├── browerrender.jpg │ │ ├── renderscope3.jpg │ │ └── monitorplatform.jpg │ ├── 107.fiber │ │ ├── phones.png │ │ ├── fiberflow.jpg │ │ ├── lifeofframe.jpg │ │ ├── fiberconstructor.jpg │ │ ├── fibereffectlist4.jpg │ │ ├── cooperativescheduling2.jpg │ │ └── fiberconstructortranverse3.jpg │ ├── 108.http │ │ ├── protocal.png │ │ ├── http_get_request.png │ │ ├── http_get_response.png │ │ ├── http_post_request.png │ │ ├── http_post_response.png │ │ ├── http_upload_request.png │ │ └── http_upload_response.png │ ├── import_github_url.png │ ├── 104.1.binary │ │ ├── float1.png │ │ ├── float2.png │ │ ├── 1.2to10.gif │ │ ├── unsigned.gif │ │ ├── 2to10zheng.gif │ │ ├── bumacunzai.png │ │ ├── 2to10xiaoshu.gif │ │ ├── completation.gif │ │ ├── originalcode.gif │ │ ├── dingdianxiaoshu.png │ │ ├── dingdiaozhengshu.png │ │ └── transfromnetoim.png │ ├── 110.nest.js │ │ ├── ioctdi.jpg │ │ ├── inversejs.jpg │ │ └── decoratorflow.png │ ├── 103.5.webpack-ast │ │ ├── ast.jpg │ │ ├── classast.png │ │ ├── es5class1.png │ │ ├── es5class2.png │ │ ├── treeshakingleft.png │ │ └── treeshakingright.png │ ├── 104.2.binary │ │ ├── DataView.jpg │ │ ├── bytearray.jpg │ │ ├── TypedArray.jpg │ │ └── browserbinary2.jpg │ ├── 105.skeleton │ │ ├── csstree.png │ │ └── skeleton.jpg │ ├── 106.1.react_ │ │ ├── react15.jpg │ │ ├── react16.jpg │ │ ├── contextapi.gif │ │ └── counterdomdiff.jpg │ ├── 106.4.redux │ │ ├── redux-flow.png │ │ └── redux-wrong.png │ ├── 109.3.dll │ │ ├── DllPlugin5.jpg │ │ ├── DllReferencePlugin5.jpg │ │ └── WebpackClassDiagram6.jpg │ ├── 112.Form │ │ └── rc-field-form.jpg │ ├── 100.1.react-basic │ │ ├── react15.jpg │ │ └── react16.jpg │ ├── 101.2.monitor │ │ └── renderscope3.jpg │ ├── 106.3.react_router │ │ ├── homereg.png │ │ ├── homereg2.png │ │ └── uerreg.png │ ├── 106.8.dva │ │ └── PPrerEAKbIoDZYr.png │ ├── 111.xstate │ │ └── togglestatechart.png │ ├── 103.1.webpack-bundle │ │ ├── bitand2.png │ │ ├── bitbyte.jpg │ │ └── webpack_intro.gif │ ├── 103.11.webpack-optimize │ │ ├── cdn2.jpg │ │ ├── splitChunks.jpg │ │ └── prefetchpreload.png │ ├── 103.7.webpack-hand │ │ └── workflow2.jpg │ ├── 103.8.webpack-hot │ │ └── webpackhmr.png │ ├── 103.12.webpack-hmr │ │ ├── hmrworkflow3.jpg │ │ ├── hot-update.js.png │ │ └── hash.hotupdate.png │ ├── 103.2.webpack-flow │ │ ├── webpackflow2.jpg │ │ └── webpackflow2020.jpg │ ├── 103.4.webpack-tapable │ │ ├── mytapable.jpg │ │ ├── BailTapables.jpg │ │ ├── BasicTapable.jpg │ │ ├── LoopTapables2.jpg │ │ ├── asynctapablesync.jpg │ │ └── waterfallTapables.jpg │ ├── 103.9.webpack-sourcemap │ │ ├── base64.png │ │ ├── mappings1.jpg │ │ ├── mappings2.jpg │ │ ├── source-map.jpg │ │ ├── fiddleproxy.png │ │ ├── sourcemapmove.png │ │ └── enablesourcemap.png │ ├── 109.1.webpack_usage │ │ ├── splitChunks.jpg │ │ ├── prefetchpreload.png │ │ └── webpackflow2020.jpg │ ├── 109.2.webpack_source │ │ ├── webpackhmr.png │ │ ├── loader_pitch.jpg │ │ ├── commonloaderexec.png │ │ ├── loader-runner2.jpg │ │ ├── pitchloaderexec.png │ │ ├── treeshakingleft.png │ │ ├── treeshakingright.png │ │ └── webpackflowloader.jpg │ ├── 113.redux-saga │ │ ├── generatorexecflow.png │ │ ├── generatororiginal.png │ │ ├── react-redux-flow.jpg │ │ └── redux-saga-flow2.jpg │ ├── 103.13.webpack-compiler │ │ ├── binaryast.jpg │ │ ├── formularast.png │ │ ├── twoplustheeplusfour2.jpg │ │ └── twoplustheemultiplyfour.jpg │ ├── 103.3.webpack-loader │ │ ├── loader_pitch.jpg │ │ ├── commonloaderexec.png │ │ ├── loader-runner2.jpg │ │ ├── pitchloaderexec.png │ │ └── webpackflowloader.jpg │ ├── 106.2.react_hooks │ │ └── useLayoutEffect.jpg │ ├── 106.5.redux_middleware │ │ ├── middleware.jpg │ │ ├── react-redux-flow.jpg │ │ └── redux-saga-flow2.jpg │ ├── 103.5.webpack-compiler │ │ ├── statemachine.jpg │ │ └── transformerAST.png │ └── 106.9.umi │ │ └── 68747470733a2f2f7368697075736572636f6e74656e742e636f6d2f33616138333237306131363061333263313434366263346134323366613330332f506173746564253230496d616765253230322e706e67 ├── js │ ├── include-html.js │ └── other.js └── css │ └── main.css ├── vercel.json ├── api └── proxy.js ├── package.json ├── README.md └── html ├── index.html ├── 5.REPL.html ├── 7.npm2.html ├── 66-8.axios-apply.html └── 30.cms-9-yaml.html /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | .vercel 3 | -------------------------------------------------------------------------------- /static/img/forkgithub.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/forkgithub.png -------------------------------------------------------------------------------- /static/img/102.java/java1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/java1.png -------------------------------------------------------------------------------- /static/img/102.java/java2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/java2.png -------------------------------------------------------------------------------- /static/img/102.java/java3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/java3.png -------------------------------------------------------------------------------- /static/img/102.java/java4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/java4.png -------------------------------------------------------------------------------- /static/img/102.java/java5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/java5.png -------------------------------------------------------------------------------- /static/img/102.java/java6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/java6.png -------------------------------------------------------------------------------- /static/img/102.java/java7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/java7.png -------------------------------------------------------------------------------- /static/img/102.java/java8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/java8.png -------------------------------------------------------------------------------- /static/img/102.java/java9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/java9.png -------------------------------------------------------------------------------- /static/img/vercel_domain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/vercel_domain.png -------------------------------------------------------------------------------- /static/img/101.1.monitor/lcp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/101.1.monitor/lcp.jpg -------------------------------------------------------------------------------- /static/img/102.java/java10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/java10.png -------------------------------------------------------------------------------- /static/img/102.java/java11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/java11.png -------------------------------------------------------------------------------- /static/img/102.java/java12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/java12.png -------------------------------------------------------------------------------- /static/img/107.fiber/phones.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/107.fiber/phones.png -------------------------------------------------------------------------------- /static/img/108.http/protocal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/108.http/protocal.png -------------------------------------------------------------------------------- /static/img/import_github_url.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/import_github_url.png -------------------------------------------------------------------------------- /static/img/104.1.binary/float1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.1.binary/float1.png -------------------------------------------------------------------------------- /static/img/104.1.binary/float2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.1.binary/float2.png -------------------------------------------------------------------------------- /static/img/107.fiber/fiberflow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/107.fiber/fiberflow.jpg -------------------------------------------------------------------------------- /static/img/110.nest.js/ioctdi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/110.nest.js/ioctdi.jpg -------------------------------------------------------------------------------- /static/img/101.1.monitor/rtttime2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/101.1.monitor/rtttime2.jpg -------------------------------------------------------------------------------- /static/img/102.java/classobject.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/classobject.jpg -------------------------------------------------------------------------------- /static/img/103.5.webpack-ast/ast.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.5.webpack-ast/ast.jpg -------------------------------------------------------------------------------- /static/img/104.1.binary/1.2to10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.1.binary/1.2to10.gif -------------------------------------------------------------------------------- /static/img/104.1.binary/unsigned.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.1.binary/unsigned.gif -------------------------------------------------------------------------------- /static/img/104.2.binary/DataView.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.2.binary/DataView.jpg -------------------------------------------------------------------------------- /static/img/104.2.binary/bytearray.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.2.binary/bytearray.jpg -------------------------------------------------------------------------------- /static/img/105.skeleton/csstree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/105.skeleton/csstree.png -------------------------------------------------------------------------------- /static/img/105.skeleton/skeleton.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/105.skeleton/skeleton.jpg -------------------------------------------------------------------------------- /static/img/106.1.react_/react15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.1.react_/react15.jpg -------------------------------------------------------------------------------- /static/img/106.1.react_/react16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.1.react_/react16.jpg -------------------------------------------------------------------------------- /static/img/106.4.redux/redux-flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.4.redux/redux-flow.png -------------------------------------------------------------------------------- /static/img/107.fiber/lifeofframe.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/107.fiber/lifeofframe.jpg -------------------------------------------------------------------------------- /static/img/109.3.dll/DllPlugin5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.3.dll/DllPlugin5.jpg -------------------------------------------------------------------------------- /static/img/110.nest.js/inversejs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/110.nest.js/inversejs.jpg -------------------------------------------------------------------------------- /static/img/112.Form/rc-field-form.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/112.Form/rc-field-form.jpg -------------------------------------------------------------------------------- /static/img/104.1.binary/2to10zheng.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.1.binary/2to10zheng.gif -------------------------------------------------------------------------------- /static/img/104.1.binary/bumacunzai.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.1.binary/bumacunzai.png -------------------------------------------------------------------------------- /static/img/104.2.binary/TypedArray.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.2.binary/TypedArray.jpg -------------------------------------------------------------------------------- /static/img/106.1.react_/contextapi.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.1.react_/contextapi.gif -------------------------------------------------------------------------------- /static/img/106.4.redux/redux-wrong.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.4.redux/redux-wrong.png -------------------------------------------------------------------------------- /static/img/100.1.react-basic/react15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/100.1.react-basic/react15.jpg -------------------------------------------------------------------------------- /static/img/100.1.react-basic/react16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/100.1.react-basic/react16.jpg -------------------------------------------------------------------------------- /static/img/101.1.monitor/baidurender.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/101.1.monitor/baidurender.png -------------------------------------------------------------------------------- /static/img/101.1.monitor/browerrender.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/101.1.monitor/browerrender.jpg -------------------------------------------------------------------------------- /static/img/101.1.monitor/renderscope3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/101.1.monitor/renderscope3.jpg -------------------------------------------------------------------------------- /static/img/101.2.monitor/renderscope3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/101.2.monitor/renderscope3.jpg -------------------------------------------------------------------------------- /static/img/102.java/datatypeandarray.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/datatypeandarray.jpg -------------------------------------------------------------------------------- /static/img/103.5.webpack-ast/classast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.5.webpack-ast/classast.png -------------------------------------------------------------------------------- /static/img/103.5.webpack-ast/es5class1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.5.webpack-ast/es5class1.png -------------------------------------------------------------------------------- /static/img/103.5.webpack-ast/es5class2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.5.webpack-ast/es5class2.png -------------------------------------------------------------------------------- /static/img/104.1.binary/2to10xiaoshu.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.1.binary/2to10xiaoshu.gif -------------------------------------------------------------------------------- /static/img/104.1.binary/completation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.1.binary/completation.gif -------------------------------------------------------------------------------- /static/img/104.1.binary/originalcode.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.1.binary/originalcode.gif -------------------------------------------------------------------------------- /static/img/104.2.binary/browserbinary2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.2.binary/browserbinary2.jpg -------------------------------------------------------------------------------- /static/img/106.1.react_/counterdomdiff.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.1.react_/counterdomdiff.jpg -------------------------------------------------------------------------------- /static/img/106.3.react_router/homereg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.3.react_router/homereg.png -------------------------------------------------------------------------------- /static/img/106.3.react_router/homereg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.3.react_router/homereg2.png -------------------------------------------------------------------------------- /static/img/106.3.react_router/uerreg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.3.react_router/uerreg.png -------------------------------------------------------------------------------- /static/img/106.8.dva/PPrerEAKbIoDZYr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.8.dva/PPrerEAKbIoDZYr.png -------------------------------------------------------------------------------- /static/img/107.fiber/fiberconstructor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/107.fiber/fiberconstructor.jpg -------------------------------------------------------------------------------- /static/img/107.fiber/fibereffectlist4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/107.fiber/fibereffectlist4.jpg -------------------------------------------------------------------------------- /static/img/108.http/http_get_request.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/108.http/http_get_request.png -------------------------------------------------------------------------------- /static/img/108.http/http_get_response.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/108.http/http_get_response.png -------------------------------------------------------------------------------- /static/img/108.http/http_post_request.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/108.http/http_post_request.png -------------------------------------------------------------------------------- /static/img/108.http/http_post_response.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/108.http/http_post_response.png -------------------------------------------------------------------------------- /static/img/110.nest.js/decoratorflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/110.nest.js/decoratorflow.png -------------------------------------------------------------------------------- /static/img/111.xstate/togglestatechart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/111.xstate/togglestatechart.png -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- 1 | { 2 | "rewrites": [ 3 | { 4 | "source": "\/imgApi/(.*)", 5 | "destination": "/api/proxy" 6 | } 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /static/img/101.1.monitor/monitorplatform.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/101.1.monitor/monitorplatform.jpg -------------------------------------------------------------------------------- /static/img/102.java/variableandoperator.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/102.java/variableandoperator.jpg -------------------------------------------------------------------------------- /static/img/103.1.webpack-bundle/bitand2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.1.webpack-bundle/bitand2.png -------------------------------------------------------------------------------- /static/img/103.1.webpack-bundle/bitbyte.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.1.webpack-bundle/bitbyte.jpg -------------------------------------------------------------------------------- /static/img/103.11.webpack-optimize/cdn2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.11.webpack-optimize/cdn2.jpg -------------------------------------------------------------------------------- /static/img/103.7.webpack-hand/workflow2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.7.webpack-hand/workflow2.jpg -------------------------------------------------------------------------------- /static/img/103.8.webpack-hot/webpackhmr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.8.webpack-hot/webpackhmr.png -------------------------------------------------------------------------------- /static/img/104.1.binary/dingdianxiaoshu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.1.binary/dingdianxiaoshu.png -------------------------------------------------------------------------------- /static/img/104.1.binary/dingdiaozhengshu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.1.binary/dingdiaozhengshu.png -------------------------------------------------------------------------------- /static/img/104.1.binary/transfromnetoim.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/104.1.binary/transfromnetoim.png -------------------------------------------------------------------------------- /static/img/108.http/http_upload_request.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/108.http/http_upload_request.png -------------------------------------------------------------------------------- /static/img/108.http/http_upload_response.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/108.http/http_upload_response.png -------------------------------------------------------------------------------- /static/img/109.3.dll/DllReferencePlugin5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.3.dll/DllReferencePlugin5.jpg -------------------------------------------------------------------------------- /static/img/103.12.webpack-hmr/hmrworkflow3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.12.webpack-hmr/hmrworkflow3.jpg -------------------------------------------------------------------------------- /static/img/103.12.webpack-hmr/hot-update.js.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.12.webpack-hmr/hot-update.js.png -------------------------------------------------------------------------------- /static/img/103.2.webpack-flow/webpackflow2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.2.webpack-flow/webpackflow2.jpg -------------------------------------------------------------------------------- /static/img/103.4.webpack-tapable/mytapable.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.4.webpack-tapable/mytapable.jpg -------------------------------------------------------------------------------- /static/img/103.9.webpack-sourcemap/base64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.9.webpack-sourcemap/base64.png -------------------------------------------------------------------------------- /static/img/107.fiber/cooperativescheduling2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/107.fiber/cooperativescheduling2.jpg -------------------------------------------------------------------------------- /static/img/109.1.webpack_usage/splitChunks.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.1.webpack_usage/splitChunks.jpg -------------------------------------------------------------------------------- /static/img/109.2.webpack_source/webpackhmr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.2.webpack_source/webpackhmr.png -------------------------------------------------------------------------------- /static/img/109.3.dll/WebpackClassDiagram6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.3.dll/WebpackClassDiagram6.jpg -------------------------------------------------------------------------------- /static/img/113.redux-saga/generatorexecflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/113.redux-saga/generatorexecflow.png -------------------------------------------------------------------------------- /static/img/113.redux-saga/generatororiginal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/113.redux-saga/generatororiginal.png -------------------------------------------------------------------------------- /static/img/113.redux-saga/react-redux-flow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/113.redux-saga/react-redux-flow.jpg -------------------------------------------------------------------------------- /static/img/113.redux-saga/redux-saga-flow2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/113.redux-saga/redux-saga-flow2.jpg -------------------------------------------------------------------------------- /static/img/103.1.webpack-bundle/webpack_intro.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.1.webpack-bundle/webpack_intro.gif -------------------------------------------------------------------------------- /static/img/103.12.webpack-hmr/hash.hotupdate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.12.webpack-hmr/hash.hotupdate.png -------------------------------------------------------------------------------- /static/img/103.13.webpack-compiler/binaryast.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.13.webpack-compiler/binaryast.jpg -------------------------------------------------------------------------------- /static/img/103.2.webpack-flow/webpackflow2020.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.2.webpack-flow/webpackflow2020.jpg -------------------------------------------------------------------------------- /static/img/103.3.webpack-loader/loader_pitch.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.3.webpack-loader/loader_pitch.jpg -------------------------------------------------------------------------------- /static/img/103.4.webpack-tapable/BailTapables.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.4.webpack-tapable/BailTapables.jpg -------------------------------------------------------------------------------- /static/img/103.4.webpack-tapable/BasicTapable.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.4.webpack-tapable/BasicTapable.jpg -------------------------------------------------------------------------------- /static/img/103.5.webpack-ast/treeshakingleft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.5.webpack-ast/treeshakingleft.png -------------------------------------------------------------------------------- /static/img/103.5.webpack-ast/treeshakingright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.5.webpack-ast/treeshakingright.png -------------------------------------------------------------------------------- /static/img/103.9.webpack-sourcemap/mappings1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.9.webpack-sourcemap/mappings1.jpg -------------------------------------------------------------------------------- /static/img/103.9.webpack-sourcemap/mappings2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.9.webpack-sourcemap/mappings2.jpg -------------------------------------------------------------------------------- /static/img/103.9.webpack-sourcemap/source-map.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.9.webpack-sourcemap/source-map.jpg -------------------------------------------------------------------------------- /static/img/106.2.react_hooks/useLayoutEffect.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.2.react_hooks/useLayoutEffect.jpg -------------------------------------------------------------------------------- /static/img/106.5.redux_middleware/middleware.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.5.redux_middleware/middleware.jpg -------------------------------------------------------------------------------- /static/img/109.2.webpack_source/loader_pitch.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.2.webpack_source/loader_pitch.jpg -------------------------------------------------------------------------------- /static/img/103.11.webpack-optimize/splitChunks.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.11.webpack-optimize/splitChunks.jpg -------------------------------------------------------------------------------- /static/img/103.13.webpack-compiler/formularast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.13.webpack-compiler/formularast.png -------------------------------------------------------------------------------- /static/img/103.3.webpack-loader/commonloaderexec.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.3.webpack-loader/commonloaderexec.png -------------------------------------------------------------------------------- /static/img/103.3.webpack-loader/loader-runner2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.3.webpack-loader/loader-runner2.jpg -------------------------------------------------------------------------------- /static/img/103.3.webpack-loader/pitchloaderexec.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.3.webpack-loader/pitchloaderexec.png -------------------------------------------------------------------------------- /static/img/103.4.webpack-tapable/LoopTapables2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.4.webpack-tapable/LoopTapables2.jpg -------------------------------------------------------------------------------- /static/img/103.5.webpack-compiler/statemachine.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.5.webpack-compiler/statemachine.jpg -------------------------------------------------------------------------------- /static/img/103.5.webpack-compiler/transformerAST.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.5.webpack-compiler/transformerAST.png -------------------------------------------------------------------------------- /static/img/103.9.webpack-sourcemap/fiddleproxy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.9.webpack-sourcemap/fiddleproxy.png -------------------------------------------------------------------------------- /static/img/103.9.webpack-sourcemap/sourcemapmove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.9.webpack-sourcemap/sourcemapmove.png -------------------------------------------------------------------------------- /static/img/107.fiber/fiberconstructortranverse3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/107.fiber/fiberconstructortranverse3.jpg -------------------------------------------------------------------------------- /static/img/109.1.webpack_usage/prefetchpreload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.1.webpack_usage/prefetchpreload.png -------------------------------------------------------------------------------- /static/img/109.1.webpack_usage/webpackflow2020.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.1.webpack_usage/webpackflow2020.jpg -------------------------------------------------------------------------------- /static/img/109.2.webpack_source/commonloaderexec.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.2.webpack_source/commonloaderexec.png -------------------------------------------------------------------------------- /static/img/109.2.webpack_source/loader-runner2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.2.webpack_source/loader-runner2.jpg -------------------------------------------------------------------------------- /static/img/109.2.webpack_source/pitchloaderexec.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.2.webpack_source/pitchloaderexec.png -------------------------------------------------------------------------------- /static/img/109.2.webpack_source/treeshakingleft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.2.webpack_source/treeshakingleft.png -------------------------------------------------------------------------------- /static/img/109.2.webpack_source/treeshakingright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.2.webpack_source/treeshakingright.png -------------------------------------------------------------------------------- /static/img/103.11.webpack-optimize/prefetchpreload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.11.webpack-optimize/prefetchpreload.png -------------------------------------------------------------------------------- /static/img/103.3.webpack-loader/webpackflowloader.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.3.webpack-loader/webpackflowloader.jpg -------------------------------------------------------------------------------- /static/img/103.4.webpack-tapable/asynctapablesync.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.4.webpack-tapable/asynctapablesync.jpg -------------------------------------------------------------------------------- /static/img/103.4.webpack-tapable/waterfallTapables.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.4.webpack-tapable/waterfallTapables.jpg -------------------------------------------------------------------------------- /static/img/103.9.webpack-sourcemap/enablesourcemap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.9.webpack-sourcemap/enablesourcemap.png -------------------------------------------------------------------------------- /static/img/106.5.redux_middleware/react-redux-flow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.5.redux_middleware/react-redux-flow.jpg -------------------------------------------------------------------------------- /static/img/106.5.redux_middleware/redux-saga-flow2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.5.redux_middleware/redux-saga-flow2.jpg -------------------------------------------------------------------------------- /static/img/109.2.webpack_source/webpackflowloader.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/109.2.webpack_source/webpackflowloader.jpg -------------------------------------------------------------------------------- /static/img/103.13.webpack-compiler/twoplustheeplusfour2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.13.webpack-compiler/twoplustheeplusfour2.jpg -------------------------------------------------------------------------------- /static/img/103.13.webpack-compiler/twoplustheemultiplyfour.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/103.13.webpack-compiler/twoplustheemultiplyfour.jpg -------------------------------------------------------------------------------- /static/img/106.9.umi/68747470733a2f2f7368697075736572636f6e74656e742e636f6d2f33616138333237306131363061333263313434366263346134323366613330332f506173746564253230496d616765253230322e706e67: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoxiaoduan/zhufeng-document/HEAD/static/img/106.9.umi/68747470733a2f2f7368697075736572636f6e74656e742e636f6d2f33616138333237306131363061333263313434366263346134323366613330332f506173746564253230496d616765253230322e706e67 -------------------------------------------------------------------------------- /api/proxy.js: -------------------------------------------------------------------------------- 1 | const { createProxyMiddleware } = require("http-proxy-middleware"); 2 | 3 | module.exports = (req, res) => { 4 | let target; 5 | if (req.url.startsWith("/imgApi")) { 6 | // 将包含 的接口转发到 http://img.zhufengpeixun.cn请求 7 | target = "http://img.zhufengpeixun.cn"; 8 | } 9 | createProxyMiddleware({ 10 | target, 11 | changeOrigin: true, 12 | pathRewrite: { 13 | // http://img.zhufengpeixun.cn/imgApi/syncfunc.png 14 | // ⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇⬇ 15 | // http://img.zhufengpeixun.cn/syncfunc.png 16 | "^/imgApi": "/", 17 | }, 18 | })(req, res); 19 | }; 20 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "zhufeng-document", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start":"vercel dev" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/gaoxiaoduan/zhufengDocument.git" 12 | }, 13 | "author": "", 14 | "license": "ISC", 15 | "bugs": { 16 | "url": "https://github.com/gaoxiaoduan/zhufengDocument/issues" 17 | }, 18 | "homepage": "https://github.com/gaoxiaoduan/zhufengDocument#readme", 19 | "dependencies": { 20 | "http-proxy-middleware": "^2.0.4", 21 | "vercel": "^24.0.0" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # zhufengDocument 2 | 3 | 文档地址:https://zhufeng-document.vercel.app/ 4 | ## 项目说明: 5 | 本项目仅用于 **个人学习** 如有侵权,请联系作者删除 6 | 7 | ## 运行方式: 8 | - 克隆仓库 `git clone https://github.com/gaoxiaoduan/zhufeng-document.git` 9 | - 进入项目文件夹 `cd zhufeng-document` 10 | - 安装依赖 `npm install` 11 | - 运行项目 `npm start` 12 | 13 | 14 | ```bash 15 | Vercel CLI 24.0.0 16 | > Ready! Available at http://localhost:3000 17 | ``` 18 | 19 | 运行成功🎉 20 | 21 | ## Vercel 部署 22 | 项目中已经添加了 Vercel 配置文件,可以直接在 Vercel 下部署了,不需要自己的服务器 23 | 24 | [![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/gaoxiaoduan/zhufeng-document) 25 | 26 |
27 | 部署 Vercel 的指导 28 | 29 | 1. 前往 [vercel.com](https://vercel.com/) 30 | 31 | 1. 点击 `Log in` 32 | ![](https://files.catbox.moe/tct1wg.png) 33 | 34 | 1. 点击 `Continue with GitHub` 通过 GitHub 进行登录 35 | ![](https://files.catbox.moe/btd78j.jpeg) 36 | 37 | 1. 登录 GitHub 并允许访问所有存储库(如果系统这样提示) 38 | 39 | 1. Fork 这个仓库 40 | 41 | 1. 返回到你的 [Vercel dashboard](https://vercel.com/dashboard) 42 | 43 | 1. 选择 `Import Project` 44 | ![](https://files.catbox.moe/qckos0.png) 45 | 46 | 1. 选择 `Import Git Repository` 47 | ![](./static/img/import_github_url.png) 48 | 49 | 1. `PROJECT NAME`自己填,`FRAMEWORK PRESET` 选 `Other` 50 | 51 | 1. 然后点击 `deploy`,等待部署完成,点击你的域名即可查看 52 | ![](./static/img/vercel_domain.png) 53 |
54 | -------------------------------------------------------------------------------- /static/js/include-html.js: -------------------------------------------------------------------------------- 1 | function includeHTML() { 2 | var z, i, elmnt, file, xhttp; 3 | /*loop through a collection of all HTML elements:*/ 4 | z = document.getElementsByTagName("*"); 5 | for (i = 0; i < z.length; i++) { 6 | elmnt = z[i]; 7 | /*search for elements with a certain atrribute:*/ 8 | file = elmnt.getAttribute("w3-include-html"); 9 | if (file) { 10 | /*make an HTTP request using the attribute value as the file name:*/ 11 | xhttp = new XMLHttpRequest(); 12 | xhttp.onreadystatechange = function() { 13 | if (this.readyState == 4) { 14 | if (this.status == 200) {elmnt.innerHTML = this.responseText;initNavEvent();} 15 | if (this.status == 404) {elmnt.innerHTML = "Page not found.";} 16 | /*remove the attribute, and call this function once more:*/ 17 | elmnt.removeAttribute("w3-include-html"); 18 | includeHTML(); 19 | } 20 | } 21 | xhttp.open("GET", file, true); 22 | xhttp.send(); 23 | /*exit the function:*/ 24 | return; 25 | } 26 | } 27 | }; 28 | function supportsImports() { 29 | return 'import' in document.createElement('link'); 30 | } 31 | function initNavHtml(){ 32 | 33 | // var element = document.getElementById('nav_template').innerHTML; 34 | // var _html= element.innerHTML; 35 | // document.getElementById('nav').innerHTML=_html; 36 | 37 | if (supportsImports()) { 38 | // 支持导入! 39 | var link = document.querySelector('link[rel="import"]'); 40 | var content = link.import; 41 | 42 | // // 从 warning.html 的文档中获取 DOM。 43 | // var el = content.querySelector('.warning'); 44 | 45 | // document.body.appendChild(el.cloneNode(true)); 46 | document.getElementById('nav').innerHTML= content; 47 | } else { 48 | // 使用其他的库来加载文件。 49 | } 50 | } 51 | function initNavHtml2(){ 52 | var fso = new ActiveXObject("Scripting.FileSystemObject"); 53 | var f = fso.OpenTextFile("/title.html", ForReading); 54 | } 55 | function initNavEvent(){ 56 | $('.warpper .page-toc ul ul li a').on('click',function(){ 57 | $('.warpper .page-toc ul ul li a').removeClass('my-active') 58 | $(this).addClass('my-active') 59 | }) 60 | $('.logo').on('mouseenter',function(){ 61 | $('.nav').height('450px'); 62 | }) 63 | $('.nav').on('mouseleave',function(){ 64 | $('.nav').height('80px'); 65 | }) 66 | $('.logo').on('click',function(){ 67 | $('.nav').css('display','none'); 68 | $('.warpper').css('padding','0px'); 69 | }) 70 | } 71 | initNavHtml2(); 72 | -------------------------------------------------------------------------------- /static/css/main.css: -------------------------------------------------------------------------------- 1 | html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline}body{line-height:1;color:#000;background:#fff}ol,ul{list-style:none}table{border-collapse:separate;border-spacing:0;vertical-align:middle}caption,th,td{text-align:left;font-weight:normal;vertical-align:middle}a{text-decoration:inherit;}a:hover{text-decoration:underline}a img{border:none}*{box-sizing:border-box}article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,main{margin:0;padding:0;border:0;outline:0;display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]),[hidden]{display:none}.markdown-body{padding:30px 35px 30px 35px;word-wrap:break-word;font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;font-size:16px;line-height:1.4em;color:#333;}@media screen and (max-width:479px){.markdown-body{padding:30px 10px 30px 10px}}.markdown-body>*:first-child{margin-top:0 !important}.markdown-body strong{font-weight:bold}.markdown-body hr{border-top:1px solid #cacaca;border-width:1px 0 0 0}.markdown-body em{font-style:italic}.markdown-body img{max-width:100%}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{position:relative;margin-top:1em;margin-bottom:16px;font-weight:bold;line-height:1.4;}.markdown-body h1 a,.markdown-body h2 a,.markdown-body h3 a,.markdown-body h4 a,.markdown-body h5 a,.markdown-body h6 a{display:none}.markdown-body h1:hover a,.markdown-body h2:hover a,.markdown-body h3:hover a,.markdown-body h4:hover a,.markdown-body h5:hover a,.markdown-body h6:hover a{display:inline;color:#000;font-size:85%}.markdown-body h1,.markdown-body h2{border-bottom:1px solid #eee}.markdown-body h1{font-size:2.25em;line-height:1.2;padding-bottom:.3em}.markdown-body h2{padding-bottom:.3em;font-size:1.75em;line-height:1.225;border-bottom:1px dashed #dedede}.markdown-body blockquote{padding:0 15px;color:#777;border-left:4px solid #ddd;margin:0;}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre{margin-top:0;margin-bottom:16px}.markdown-body ul,.markdown-body ol{padding-left:1.4em;list-style:initial}.markdown-body ol{list-style-type:decimal}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body pre{padding:16px;overflow:auto;background-color:#e5e5e5;border-radius:3px;word-break:break-all;word-wrap:break-word;font:16px Consolas,"Liberation Mono",Menlo,Courier,monospace;}.markdown-body pre code{background-color:transparent;color:inherit;line-height:16px;display:block;font-size:14px}.markdown-body pre code:before,.markdown-body pre code:after,.markdown-body pre tt:before,.markdown-body pre tt:after{letter-spacing:0;content:""}.markdown-body code,.markdown-body tt{padding:0;padding-bottom:2px;margin:0 3px;vertical-align:top;background-color:#ededf7;border-radius:4px;padding-left:3px;padding-right:3px;font-size:14px;color:#6f5990}.markdown-body code:before,.markdown-body code:after,.markdown-body tt:before,.markdown-body tt:after{content:"\00a0";vertical-align:text-top}.markdown-body table{width:100%;border-collapse:collapse;border-spacing:0;max-width:100%;display:block;background-color:transparent;}.markdown-body table th,.markdown-body table td{border:1px solid #ddd;padding:4px 10px}.markdown-body table th{font-weight:bold;background:#f3f3f3}.markdown-body table tr:nth-child(2n){background-color:#f8f8f8}.markdown-body table tbody{background:#fff}.markdown-body .task-list-item{padding:0;}.markdown-body .task-list-item li{list-style-type:none}.hljs{display:block;overflow-x:auto;padding:.5em;color:#333;background:#f8f8f8;-webkit-text-size-adjust:none}.hljs-comment,.diff .hljs-header{color:#969896;font-size:90%}.hljs-keyword,.css .rule .hljs-keyword,.hljs-winutils,.nginx .hljs-title,.hljs-subst,.hljs-request,.hljs-status{color:#a71d5d;font-weight:bold}.hljs-number,.hljs-hexcolor,.ruby .hljs-constant{color:#008080}.hljs-string,.hljs-tag .hljs-value,.hljs-doctag,.tex .hljs-formula{color:#183691}.hljs-title,.hljs-id,.scss .hljs-preprocessor{color:#900;font-weight:bold}.hljs-list .hljs-keyword,.hljs-subst{font-weight:normal}.hljs-class .hljs-title,.hljs-type,.vhdl .hljs-literal,.tex .hljs-command{color:#458;font-weight:bold}.hljs-tag,.hljs-tag .hljs-title,.hljs-rule .hljs-property,.django .hljs-tag .hljs-keyword{color:#000080;font-weight:normal}.hljs-attribute,.hljs-variable,.lisp .hljs-body,.hljs-name{color:#008080}.hljs-regexp{color:#009926}.hljs-symbol,.ruby .hljs-symbol .hljs-string,.lisp .hljs-keyword,.clojure .hljs-keyword,.scheme .hljs-keyword,.tex .hljs-special,.hljs-prompt{color:#990073}.hljs-built_in{color:#0086b3}.hljs-preprocessor,.hljs-pragma,.hljs-pi,.hljs-doctype,.hljs-shebang,.hljs-cdata{color:#999;font-weight:bold}.hljs-deletion{background:#fdd}.hljs-addition{background:#dfd}.diff .hljs-change{background:#0086b3}.hljs-chunk{color:#aaa}*{box-sizing:border-box}body,html{height:100%;font-family:Helvetica,arial,nimbussansl,liberationsans,freesans,clean,sans-serif,"Segoe UI Emoji","Segoe UI Symbol"}.logo{float:left;padding:10px 20px 0 0;font-size:24px;color:#61dafb;}.logo img{vertical-align:middle;margin:-4px 0 0 0}.nav{background:#20232a;z-index:2;height:80px;line-height:61px;border-bottom:1px solid #c4c4c4;padding:0 0 0 20px;position:fixed;width:100%;}@media screen and (max-width:479px){.nav{height:initial;position:initial}}.nav ul{list-style:none;position:relative;display:inline-table;display:block;overflow-x:auto;height:100%;}@media screen and (max-width:479px){.nav ul{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:100%;overflow:auto}}.nav ul ul{display:none;background:#d1d1d1;border-radius:0;padding:0;position:absolute;top:100%;z-index:9;}.nav ul ul li.active a{color:#61dafb;line-height:29px;height:29px}.nav ul ul li{float:none;border-bottom:1px solid #c8c8c8;position:relative;}.nav ul ul li a:hover{background:#4b545f;color:#fff}.nav ul ul a{color:#fff;line-height:29px;white-space:nowrap;word-break:keep-all}.nav ul ul ul{position:absolute;left:100%;top:0}.nav ul li{float:left;line-height:40px;}.nav ul li a{color:#fff;text-decoration:none;padding:0 15px}.nav ul li:hover a{color:#61dafb}.nav ul li.active a{color:#61dafb;height:40px}.nav ul li:hover > ul{display:block}.nav ul:after{content:"";clear:both;display:block}.warpper{width:100%;padding:80px 0 0 0;height:100%;overflow:auto;}@media screen and (max-width:479px){.warpper{padding-top:0}}.warpper .page-toc,.warpper .markdown-body{height:100%}.warpper .markdown-body{margin-left:220px;overflow:auto;}@media screen and (max-width:479px){.warpper .markdown-body{margin-left:0}}.warpper .page-toc{width:200px;height:calc(100% - 80px);position:fixed;width:220px;border-right:1px solid #bbb;box-shadow:0 0 20px #ccc;background:#f7f7f7;padding:10px;overflow-y:auto;overflow-x:hidden;font-family:"Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,sans-serif !important;}@media screen and (max-width:479px){.warpper .page-toc{display:none}}.warpper .page-toc ul{list-style-type:none;margin:0;}.warpper .page-toc ul a{display:block;padding:3px 0;color:#151515;text-decoration:none;font-weight:700;line-height:16px;font-size:14px;}.warpper .page-toc ul a:hover{text-decoration:underline}.warpper .page-toc ul li{padding-left:3px;line-height:25px;text-align:left}.warpper .page-toc ul ul{margin:0 0 0 10px;padding:0 0 0 9px;}.warpper .page-toc ul ul li a{font-size:90%;font-weight:normal;border-bottom:0;position:relative}.warpper .copyright{border-top:1px dashed #e9e9e9;padding:6px 0 5px 2px;margin:32px 0 0 0;line-height:16px;font-size:12px;color:#dfdfdf;}.warpper .copyright a{color:#d6ddf8;text-decoration:underline;}.warpper .copyright a:hover{color:#333}.forkgithub{position:absolute;z-index:2;right:0;background:url("../img/forkgithub.png")/*tpa=http://www.zhufengpeixun.cn/plan/static/img/forkgithub.png*/ 14px -15px no-repeat;}@media screen and (max-width:479px){.forkgithub{display:none}}.forkgithub a{display:block;width:149px;height:149px}.my-active{font-weight:bold !important;margin-top:-3px}.my-active:before{content:'';display:block;height:16px;border-left:4px solid #61dafb;padding-left:16px;position:absolute;left:-12px}::-webkit-scrollbar-track-piece{background-color:#fff;-webkit-border-radius:0}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{height:50px;background-color:#999;-webkit-border-radius:4px;outline:2px solid #fff;outline-offset:-2px;border:2px solid #fff}::-webkit-scrollbar-thumb:hover{height:50px;background-color:#9f9f9f;-webkit-border-radius:4px} -------------------------------------------------------------------------------- /static/js/other.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 珠峰架构师成长计划 7 | 8 | 9 | 19 | 20 | 21 | 429 | 430 | 431 | 432 | 433 | 434 |
435 |
436 | 437 |
438 |
439 |

珠峰架构师成长计划 #

440 | 441 |
442 |
443 | 471 | 472 | 473 | 489 | 490 | 491 | -------------------------------------------------------------------------------- /html/5.REPL.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 珠峰架构师成长计划 7 | 8 | 9 | 19 | 20 | 21 | 429 | 430 | 431 | 432 | 433 | 434 |
435 | 436 |
437 | 438 |
439 | 440 |
441 |

1.REPL #

442 |

在Node.js中为了使开发者方便测试JavaScript代码,提供了一个名为REPL的可交互式运行环境。开发者可以在该运行环境中输入任何JavaScript表达式,当用户按下回车键后,REPL运行环境将显示该表达式的运行结果。

443 |

2.如何进入REPL #

444 |

在命令行容器中输入node命令并按下回车键,即可进入REPL运行环境。

445 |

3.REPL操作 #

446 | 460 |

4.REPL运行环境的基础命令 #

461 | 469 | 470 | 471 |
472 | 473 |
474 | 475 | 476 | 477 | 493 | 494 | 495 | -------------------------------------------------------------------------------- /html/7.npm2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 珠峰架构师成长计划 7 | 8 | 9 | 19 | 20 | 21 | 429 | 430 | 431 | 432 | 433 | 434 |
435 |
436 | 437 |
438 |
439 |

1. npm script #

440 |

1.1 快速创建项目 #

441 |
npm init
442 | npm init -f
443 | npm init -y
444 | 
445 |
npm config set init.author.email "zhufengnodejs@126.com"
446 | npm config set init.author.name "zhufengnodejs"
447 | npm config set init.author.url "http://github.com/zhufengnodejs"
448 | npm config set init.license "MIT"
449 | npm config set init.version "0.0.1"
450 | 
451 |

1.2 用 npm run 执行命令 #

452 | 458 |
  "scripts": {
459 |     "test": "echo \"Error: no test specified\" && exit 1",
460 |     "eslint": "eslint --version"
461 |   }
462 | 
463 |
npm run eslint
464 | 
465 | 466 |
467 |
468 | 496 | 497 | 498 | 514 | 515 | 516 | -------------------------------------------------------------------------------- /html/66-8.axios-apply.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 珠峰架构师成长计划 7 | 8 | 9 | 19 | 20 | 21 | 429 | 430 | 431 | 432 | 433 | 434 |
435 |
436 | 437 |
438 |
439 |

ajax请求 #

440 | 447 |

封装ajaxRequest

448 |
import axios from 'axios';
449 | let baseUrl = process.env.NODE_ENV !== 'production'?'http://localhost:8080':'/';
450 | class AjaxRequest{
451 |     constructor(){
452 |         this.baseURL = baseUrl; // 配置默认路径
453 |     }
454 |     request(config){
455 |         // 创建一个axios实例
456 |         let instance = axios.create();
457 |         // axios(config);
458 |         config = {baseURL:this.baseURL,...config};
459 |         return instance(config);
460 |     }
461 | }
462 | export default new AjaxRequest();
463 | 
464 | 
521 | 522 |
523 |
524 | 552 | 553 | 554 | 570 | 571 | 572 | -------------------------------------------------------------------------------- /html/30.cms-9-yaml.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 珠峰架构师成长计划 7 | 8 | 9 | 19 | 20 | 21 | 429 | 430 | 431 | 432 | 433 | 434 |
435 | 436 |
437 | 438 |
439 | 440 |
441 |

1.YAML #

442 | 446 |

2.基本规则 #

447 | 454 |

3. YAML 支持的数据结构 #

455 | 460 |

3.1 对象 #

461 |

对象的一组键值对,使用冒号结构表示。

462 |
name: zhufeng
463 | 
464 |

转为 JavaScript 如下。

465 |
{ name: 'zhufeng' }
466 | 
467 |

3.2 数组 #

468 |

一组连词线开头的行,构成一个数组。

469 |
- apple
470 | - banana
471 | - orange
472 | 
473 |

转为 JavaScript 如下

474 |
[ 'apple', 'banana', 'orange' ]
475 | 
476 |

3.3 复合结构 #

477 |

对象和数组可以结合使用,形成复合结构。

478 |
name: 'zhufeng'
479 | age: 18
480 | score:
481 |   chinese: 80
482 |   math: 90
483 |   english: 100
484 | 
485 |
{
486 |     name: 'zhufeng',
487 |     age: 18,
488 |     score:
489 |     {
490 |         chinese:80,
491 |         math:90,
492 |         english:100
493 |     }
494 | }
495 | 
496 |

3.4 纯量 #

497 |

纯量是最基本的、不可再分的值。以下数据类型都属于 JavaScript 的纯量。

498 | 507 |
name: 'zhufeng'
508 | age: 10
509 | score: 99.99
510 | married: true
511 | parent: ~
512 | now: 1982-09-03T22:22:22.10-09:00
513 | birthday: 1982-09-03 
514 | 
515 |

参考 #

516 | 521 | 522 | 523 |
524 | 525 |
526 | 527 | 528 | 529 | 545 | 546 | 547 | --------------------------------------------------------------------------------