获得徽章 0
- array sort by desc
_.sortBy(list,'obj.key').reverse();评论1 - underscore in Vue
1.npm install vue-underscore
2.import underscore from 'vue-underscore'; Vue.use(underscore);(main.js)
3.import {_} from 'vue-underscore';(your vue file)展开评论1 - moment.js in vue
1.npm install vue-moment
2.Vue.use(require('vue-moment'));(main.js)
3.{{ new Date() | moment("dddd, MMMM Do YYYY") }}(your vue file)展开评论1 - rest-hapi of Creating Endpoints
1. Model endpoints : means that if you create the model according to regulation , then rest-hapi will help you to create the endpoints automatic
2. Standalone endpoints: if you add api file to your 'api' directory then rest-hapi will help you to create the endpoints automatic too
3. Additional endpoints: if you add 'routeOptions.extraEndpoints ' array to your model then rest-hapi will help you to create the endpoints automatic too展开评论1 - summary of rest-hapi 's Configuration
key points:
1.modelPath(defalut:models)
2.apiPath(defalut:api)
3.URI(defalut:mongodb://localhost/rest_hapi)
4.config.logRoutes(replace it with true)
5.config.swaggerHost(use your api host)展开评论1 - the pit that install rest-hapi on windows
seed the models: node_modules\.bin\rest-hapi-cli.cmd seed评论1