摘要: 返回的数据流带入function中即可,可修改文件名称 function getOutExcel(fileName, res) { let blob = new Blob([res], { type: "application/vnd.ms-excel" }); if (window.navigat 阅读全文
posted @ 2021-05-20 10:19 Alex-Song 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1、首先在store文件下创建modules文件夹,在内部新建各个模块的js文件 文件内部写法如下: const oneVuex={ namespaced: true, state:{ oneCount:100, oneNum:50 }, actions:{ oneAcAdd({commit},on 阅读全文
posted @ 2020-07-08 10:11 Alex-Song 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 1、新建store文件夹,内部新建index.js 文件内部内容如下: 写法一 import Vuex from "vuex"; import Vue from "vue"; Vue.use(Vuex); // 第一种写法: const state={ count:0, num:100 } cons 阅读全文
posted @ 2020-07-07 14:30 Alex-Song 阅读(3970) 评论(0) 推荐(0) 编辑
摘要: vue中使用element合并表格的行或者列 <template> <div> <el-table :data="tableData" :span-method="arraySpanMethod" border style="width: 100%"> <el-table-column prop=" 阅读全文
posted @ 2020-07-02 10:34 Alex-Song 阅读(1192) 评论(0) 推荐(0) 编辑
摘要: js常用的保留小数的方法: 1、toFixed() 例如: let val=100 console.log(val.toFixed(2))//100.00 val=100.005 console.log(val.toFixed(2))//100.00 val=100.0050 console.log 阅读全文
posted @ 2020-06-22 15:07 Alex-Song 阅读(913) 评论(1) 推荐(0) 编辑
摘要: // 数组基本属性及方法 // concat,合并数组,原数组不改变 var arr=[1,2,3,4,5] var arr1=arr.concat(1,2,3); console.log(arr);//1,2,3,4,5 console.log(arr1);//1, 2, 3, 4, 5, 1, 阅读全文
posted @ 2020-05-29 11:34 Alex-Song 阅读(468) 评论(0) 推荐(0) 编辑
摘要: // 数组的深复制 // concat var arr = [1, 2, 3, 4, 5]; var arr1 = arr.concat(); arr[0] = 100; console.log(arr) console.log(arr1) // slice var arr = [1, 2, 3, 阅读全文
posted @ 2020-05-28 15:49 Alex-Song 阅读(221) 评论(0) 推荐(0) 编辑
摘要: // 数据类型的判断 var num=123; var bool=true; var str='qwe'; var nu=null; var und=undefined; var arr=[]; var obj={}; // typeof('表达式') // typeof '变量名' console 阅读全文
posted @ 2020-05-26 15:15 Alex-Song 阅读(413) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-05-21 09:16 Alex-Song 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1、router.js路由内部写法 import Vue from "vue" import VueRouter from "vue-router" import Home from "../views/home.vue" import List from "../views/list.vue" i 阅读全文
posted @ 2020-04-27 09:27 Alex-Song 阅读(6312) 评论(1) 推荐(2) 编辑