文章分类 - Vue
摘要:api.js export const getAPI = (接受的参数) => { return this.$axios({ url: 'url地址', method: 'POST', data, headers: { "Content-Type": "application/json" } });
阅读全文
摘要:Vue 实现刷新 app.vue <router-view v-if="isRouterAlive"></router-view> app.vue export default { provide() { return { reload: this.reload } }, data() { retu
阅读全文
摘要:vue 时间格式化插件 npm install moment --save main.js //时间格式化插件 import moment from 'moment' Vue.prototype.$moment = moment 使用 let createTime = new Date(); con
阅读全文
摘要:Java JSONArray添加对象 JSONArray array = req.getJSONArray("detail"); JSONObject json = new JSONObject(); json.put("a",1); array.add(json);
阅读全文
摘要:Vue项目 VueConfig.js配置 module.exports = { lintOnSave: false, devServer: { disableHostCheck: false, port: 8080, https: false, hotOnly: false, proxy: { ""
阅读全文

浙公网安备 33010602011771号