技术架构为:Vue + ES6 + Webpack + Axios。实现搜索、购物车、用户登陆等多个子模块。
- 对 axios 进行二次包装来与后端进行数据交互,实现前后端分离开发
- 利用 Vuex 的 actions 搭配 forEach 去重并过滤空字符串,实现商品搜寻的功能,方便顾客查找需要的商品
- 调用 nextTick() 延迟到界面更新后创建 swiper 对象
- 通过懒加载和 Vue Router 的动态导入,将加载时间 load 从1.2s降低到320ms左右
基于Vue的网上商城
Home Page: http://106.14.6.255/#/home
技术架构为:Vue + ES6 + Webpack + Axios。实现搜索、购物车、用户登陆等多个子模块。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.