前端
MarsDMC
这个作者很懒,什么都没留下…
展开
-
js 加密以及解密
js 加密以及解密 import CryptoJS from 'crypto-js/crypto-js' const key = CryptoJS.enc.Utf8.parse('dbbddbbd') //十六位十六进制数作为密钥 const iv = CryptoJS.enc.Utf8.parse('dbbddbbd') //十六位十六进制数作为密钥偏移量 //加密方法 function Encryption(word) { let srcs = CryptoJS.enc.Utf8.parse原创 2021-01-22 09:48:23 · 632 阅读 · 0 评论 -
el-table 换页保持选中
el-table 换页保持选中 <el-table :row-key="(row) => row.accountId" ref="multipleTable" :data="tableData" @selection-change="handleSelectionChange" > <el-table-column type="selection" :reserve-selection="true" width="5原创 2021-01-20 12:53:52 · 344 阅读 · 0 评论 -
时间戳转换指定格式
时间戳转换 //时间戳转换 formatTime(date) { var date = new Date(date); var YY = date.getFullYear() + "-"; var MM = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) + "-"; var DD原创 2020-12-02 14:23:04 · 119 阅读 · 0 评论