上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: //前端分页 //定义变量detailTable const detailTable = { "page":1,//页数 "pageSize":10,//条数 "tolNum":0,//总条数 "yuanList":[],//所有数据 "table":[]//表格展示数据 } //点击分页时 con 阅读全文
posted @ 2021-12-07 11:28 幻影之舞 阅读(124) 评论(0) 推荐(0)
摘要: 1.先安装moment npm install moment 2.filter.js import Vue from "vue"; import moment from 'moment' Vue.filter('date-format',function(value,formatStr='YY-MM 阅读全文
posted @ 2021-12-03 17:11 幻影之舞 阅读(48) 评论(0) 推荐(0)
摘要: 安装: npm install better-scroll --save 使用; import Bscroll from 'better-scroll' this.$nextTick(() => { // 初始化滚动 this._initScroll() // 初始化tops this._initT 阅读全文
posted @ 2021-11-29 11:06 幻影之舞 阅读(128) 评论(0) 推荐(0)
摘要: 安装mockjs npm install mockjs --save 编写mock.js import Mock from 'mockjs' //引入mockjs import apiData from './data.json'//引入json格式的数据 Mock.mock('/seller', 阅读全文
posted @ 2021-11-18 11:45 幻影之舞 阅读(439) 评论(0) 推荐(0)
摘要: let time = 60 const intervalId = setInterval(()=>{ time -- if(time <=0 ){ clearInterval(intervalId) } }) 阅读全文
posted @ 2021-11-11 12:07 幻影之舞 阅读(461) 评论(0) 推荐(0)
摘要: var list = {'a':1,'b':2} console.log(Object.keys(list))//返回一个对象属性名组成的数组【'a','b'】 Object.keys(list).forEach(key=>{ const str = key + ':' + list[key] }) 阅读全文
posted @ 2021-11-11 11:05 幻影之舞 阅读(54) 评论(0) 推荐(0)
摘要: setup() { //数据 let num = ref(0) let msg = ref('6666') let person = reactive({ name:'大王', age:18, job:{ j1:{ money:20 } } }) //情况1:监视ref定义的数据(watch有第三个 阅读全文
posted @ 2021-10-25 22:37 幻影之舞 阅读(1143) 评论(0) 推荐(0)
摘要: import { reactive, computed } from "vue"; export default { name: "HelloWorld", setup() { let person = reactive({ firstName: "李", lastName: "晓玲", }); / 阅读全文
posted @ 2021-10-25 21:55 幻影之舞 阅读(587) 评论(0) 推荐(0)
摘要: 安装; npm i vuex 创建store文件夹,包含count.js perosn.js 以及汇总的index.js count.js: export default{ namespaced:true, actions:{ waitJia(context,val){ context.commit 阅读全文
posted @ 2021-10-18 23:10 幻影之舞 阅读(50) 评论(0) 推荐(0)
摘要: 全部引入 安装:npm i element-ui main.js: //引入element import ElementUI from 'element-ui'; //引入element全部样式 import 'element-ui/lib/theme-chalk/index.css'; Vue.u 阅读全文
posted @ 2021-10-16 22:55 幻影之舞 阅读(576) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页