摘要:
返回的数据流带入function中即可,可修改文件名称 function getOutExcel(fileName, res) { let blob = new Blob([res], { type: "application/vnd.ms-excel" }); if (window.navigat 阅读全文
摘要:
1、首先在store文件下创建modules文件夹,在内部新建各个模块的js文件 文件内部写法如下: const oneVuex={ namespaced: true, state:{ oneCount:100, oneNum:50 }, actions:{ oneAcAdd({commit},on 阅读全文
摘要:
1、新建store文件夹,内部新建index.js 文件内部内容如下: 写法一 import Vuex from "vuex"; import Vue from "vue"; Vue.use(Vuex); // 第一种写法: const state={ count:0, num:100 } cons 阅读全文
摘要:
vue中使用element合并表格的行或者列 <template> <div> <el-table :data="tableData" :span-method="arraySpanMethod" border style="width: 100%"> <el-table-column prop=" 阅读全文
摘要:
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 阅读全文
摘要:
// 数组基本属性及方法 // 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, 阅读全文
摘要:
// 数组的深复制 // 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, 阅读全文
摘要:
// 数据类型的判断 var num=123; var bool=true; var str='qwe'; var nu=null; var und=undefined; var arr=[]; var obj={}; // typeof('表达式') // typeof '变量名' console 阅读全文
该文被密码保护。 阅读全文
摘要:
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 阅读全文