- 自上而下的分层设计
- 关注模块的分离点,结合自己的需要进行合理的分离
- 易用
- 可扩展
- 可维护
**********************************************************************
* web-upload-file-lib *
* *
* *
* ************************************************************* *
* * upload-core * *
* * * *
* * ***************************************************** * *
* * * * * *
* * * upload * * *
* * * * * *
* * * lifecycle: * * *
* * * 1. before * * *
* * * 2. progress * * *
* * * 3. reponse * * *
* * * * * *
* * * * * *
* * * ******************* ************************ * * *
* * * * * * * * * *
* * * * DOM-input * * DOM-event * * * *
* * * * * * * * * *
* * * * * * * * * *
* * * ******************* ************************ * * *
* * * * * *
* * ***************************************************** * *
* * * *
* * ***************************************************** * *
* * * * * *
* * * BOM-xhr * * *
* * * * * *
* * * * * *
* * ***************************************************** * *
* * * *
* * * *
* ************************************************************* *
* *
* *
* ********************** *
* * * *
* * Auxiliary method * *
* * * *
* * * *
* ********************** *
* *
* *
**********************************************************************
npm i
npm run build
自动编译打包到 /example/test/client
npm run dev
- web static server
cd ./example/test/server
npm run start
- client
cd ../client
npm run start