文章分类 - JavaScript
摘要:api.js export const getAPI = (接受的参数) => { return this.$axios({ url: 'url地址', method: 'POST', data, headers: { "Content-Type": "application/json" } });
阅读全文
摘要:安装 npm install -g nrm 列表 nrm ls 添加 nrm add 名字 'URL地址' 删除 nrm del 名字 切换 nrm use 名字
阅读全文
摘要: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);
阅读全文

浙公网安备 33010602011771号