/vue-search

vue前端搜索功能,支持汉字、拼音、首字母搜索,写的比较low,待优化_(:з」∠)_.

Primary LanguageVue

前端搜索(支持汉字,拼音,首字母)

后台给出所有数据,所有搜索细节都在前端实现,所有文字转换为拼音和文字的首字母的组合(eg: 北京 转换为 beijing 和 bj 两种),数据组合为json格式(key:value),搜索就在json中搜索,返回value数据,展示在页面上.

搜索 (所有内容在文件App.vue中)

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For detailed explanation on how things work, checkout the guide and docs for vue-loader.