文章分类 -  Vue

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