- 博客(15)
- 收藏
- 关注
原创 The computed property “userInfo“ is already defined in data
The computed property "userInfo" is already defined in data
2022-07-04 10:16:10
1784
原创 VUEX页面刷新数据丢失解决办法之一
刷新页面vuex的数据会丢失属于正常现象,因为JS的数据都是保存在浏览器的堆栈内存里面的,刷新浏览器页面,以前堆栈申请的内存被释放,这就是浏览器的运行机制,那么堆栈里的数据自然就清空了。将接口返回的数据保存在vuex的store里,也将这些信息也保存在sessionStorage里。...
2022-06-17 09:41:27
360
原创 uniapp中引入VUEX
1.项目根目录新建store文件夹===》index.js2.main.js引入3.main.js挂载4.VUEX的index.js编写代码import Vue from 'vue'import Vuex from 'vuex'Vue.use(Vuex)const store = new Vuex.Store({ state: { }, getters: { }, mutations: { }, actions...
2022-05-16 11:47:28
1325
原创 常用正则表达式
作者:华为云开发者社区链接:https://www.zhihu.com/question/64606609/answer/1760237940来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。1.邮箱export const isEmail = (s) => { return /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/.test(s)}2.手机号码.
2021-11-15 12:11:45
417
原创 ECharts 的柱状图显示
echarts 柱状图很低,解决办法加入:grid: { top: '8%', left: '2%', right: '2%', bottom: '0%', containLabel: true },另外...
2021-11-10 14:26:47
915
原创 uniapp获取天气
uni.request({ url: 'http://wthrcdn.etouch.cn/weather_mini?city=' + city, data: {}, success: (res) => { console.log(res.data) //当前温度 ...
2021-11-03 15:42:42
1361
原创 uniapp引入echarts
1.在项目根目录下cmd执行npm install echarts --sav2.在main.js中引用// 引入echartsimport * as echarts from 'echarts'Vue.prototype.$echarts = echarts3.页面<view id="myChart" :style="{width: echertWidth, height: sHeight}"></view>mounted() { ...
2021-10-28 11:13:34
1591
原创 项目错误处理一
DataTables warning: table id=dataTable - Requested unknown parameter 'deptType' for row 3. For more information about this error, please see(DataTables警告:表id=dataTable——请求第3行的未知参数“deptType”。有关此错误的更...
2019-07-31 12:24:13
120
原创 laydate.js插件第二次点击日期无法弹出
使用laydate.js插件后,部分人正常显示,但是其他一部分人点右边的日期弹出选择后,只改变左边的,右边还是无法选择日期,或者点击右边,左边还是无法选择日期,在jsp页面源代码是这样的:<div class="form-group"><input type="text" class="form-control" placeholder="开始时间" name="b...
2019-07-31 12:22:56
367
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人