- 博客(12)
- 收藏
- 关注
原创 微信小程序总结
主要记录在微信小程序开发过程所用到的功能以及遇到的问题及解决方案;二、微信小程序自定义tabbar(https://developers.weixin.qq.com/miniprogram/dev/framework/ability/custom-tabbar.html))代码如下(示例):2.添加tabBar代码文件(要跟app.json在同一目录下)custom-tab-bar/index.js:custom-tab-bar/index.wxss:custom-tab-bar/index.w
2022-06-08 20:09:02 98
原创 读取静态文件
js读取静态json文件; axios.get(url) .then(res=>{ console.log(res.data); }) .catch(err=>{ console.log(err); })
2021-01-07 16:12:32 174
原创 js下载表格
js 下载表格 axios({ method: "post", url: this.baseURL+"/api/read/wage/record_list_for_download", responseType: "blob",//*******/重点****** headers: { "Content-Type": "application/json", Auth
2020-12-01 16:00:57 211
原创 2020-09-08
1.更改地址栏的参数不会进行页面跳转和页面刷新 history.replaceState(null, "",`?batchId=${_this.batchId}&&count=${_this.count}&&status=${_this.status}`);
2020-09-08 10:26:45 95
原创 Array.map()
map用法:Array.map(f)它会把数组中的值(一个一个)传入到参数函数里,最终得到一个新的数组;function add(x){ return x*2; }let arr = [1,2,3,4,5,6];//*2let result = arr.map(add);console.log(result);// [2,4,6,8,10,12]reduce用法:Array.reduce(f)f函数需要有俩个参数,...
2020-08-05 11:48:39 920
原创 CSS常用样式----(1)
1.清除浮动 <!-- 浮动问题 --> <div class="clear_float"> <div class="left">left</div> <div class="right">right</div> </div>.clear_float::after { content: ""; display: block;
2020-08-05 10:56:12 113
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人