├── .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 | [](https://vercel.com/import/project?template=https://github.com/gaoxiaoduan/zhufeng-document)
25 |
26 | 部署 Vercel 的指导
28 |
29 | 1. 前往 [vercel.com](https://vercel.com/)
30 |
31 | 1. 点击 `Log in`
32 | 
33 |
34 | 1. 点击 `Continue with GitHub` 通过 GitHub 进行登录
35 | 
36 |
37 | 1. 登录 GitHub 并允许访问所有存储库(如果系统这样提示)
38 |
39 | 1. Fork 这个仓库
40 |
41 | 1. 返回到你的 [Vercel dashboard](https://vercel.com/dashboard)
42 |
43 | 1. 选择 `Import Project`
44 | 
45 |
46 | 1. 选择 `Import Git Repository`
47 | 
48 |
49 | 1. `PROJECT NAME`自己填,`FRAMEWORK PRESET` 选 `Other`
50 |
51 | 1. 然后点击 `deploy`,等待部署完成,点击你的域名即可查看
52 | 
53 |
在Node.js中为了使开发者方便测试JavaScript代码,提供了一个名为REPL的可交互式运行环境。开发者可以在该运行环境中输入任何JavaScript表达式,当用户按下回车键后,REPL运行环境将显示该表达式的运行结果。
443 |在命令行容器中输入node命令并按下回车键,即可进入REPL运行环境。
445 |let repl = require('repl');
453 | let con = repl.start().context;
454 | con.msg = 'hello';
455 | con.hello = function(){
456 | console.log(con.msg);
457 | }
458 | 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 | npm run-scriptpackage.json文件中读取scripts对象里面的全部配置npm run的第一个参数作为键,在scripts对象里面获取对应的值作为接下来要执行的命令,如果没找到直接报错 "scripts": {
459 | "test": "echo \"Error: no test specified\" && exit 1",
460 | "eslint": "eslint --version"
461 | }
462 |
463 | npm run eslint
464 |
465 |
466 | import axios from '../lib/AjaxRequest';
442 | export const getUser = ()=>{
443 | return axios.request({url:'/getUser',method:'get'});
444 | }
445 | 封装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 | // webpack解决前端跨域问题
466 | module.exports = {
467 | devServer:{
468 | proxy:{
469 | '/getUser':{
470 | target:'http://localhost:3000'
471 | }
472 | }
473 | }
474 | }
475 | 请求拦截器/响应拦截器
477 |import axios from 'axios';
478 | let baseUrl = process.env.NODE_ENV !== 'production'?'http://localhost:8080':'/';
479 | class AjaxRequest{
480 | constructor(){
481 | this.baseURL = baseUrl; // 配置默认路径
482 | this.requestQueue = {}; // 缓存当前请求队列 用来操作loading的显示或者隐藏
483 | }
484 | configInterceptors(instance,url){
485 | // 配置请求拦截
486 | instance.interceptors.request.use( (config) => {
487 | // loading效果 开始请求前显示loading
488 | if(Object.keys(this.requestQueue).length === 0){
489 | console.log('显示loading');
490 | }
491 | this.requestQueue[url] = config.url;
492 | return config;
493 | });
494 | // 配置响应拦截
495 | instance.interceptors.response.use(res=>{
496 | // 取消loading效果
497 | delete this.requestQueue[url];
498 | if(Object.keys(this.requestQueue).length === 0){
499 | console.log('取消loading');
500 | };
501 | if(res.status !== 200){
502 | return Promise.reject(res);
503 | }else{
504 | return res.data;
505 | }
506 | })
507 |
508 | }
509 | request(config){
510 | // 创建一个axios实例
511 | let instance = axios.create();
512 | // axios(config);
513 | config = {baseURL:this.baseURL,...config};
514 | this.configInterceptors(instance,config.url);
515 | return instance(config);
516 | }
517 | }
518 | export default new AjaxRequest();
519 | 对象的一组键值对,使用冒号结构表示。
462 |name: zhufeng
463 |
464 | 转为 JavaScript 如下。
465 |{ name: 'zhufeng' }
466 |
467 | 一组连词线开头的行,构成一个数组。
469 |- apple
470 | - banana
471 | - orange
472 |
473 | 转为 JavaScript 如下
474 |[ 'apple', 'banana', 'orange' ]
475 |
476 | 对象和数组可以结合使用,形成复合结构。
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 | 纯量是最基本的、不可再分的值。以下数据类型都属于 JavaScript 的纯量。
498 |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 |