会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
bingxiaoxiao
zhangchenxiao
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
···
14
下一页
2020年11月12日
vue 文件导出demo
摘要: 1api 会和普通调用的不同 export function exportBalance(params) { return request .post('/api-crm-order//crm/provider/balance/exportBalance', Qs.stringify(params,
阅读全文
posted @ 2020-11-12 09:15 bingxiaoxiao
阅读(278)
评论(0)
推荐(0)
2020年11月10日
vue中后台返回的是数字,前端利用字典将其转换为相对应的中文
摘要: 后台返回的数据: const list= [{ level: 2, }] 在data中定义字典 levelArr:{ 1:"一级", 2:"二级", 3:"三级", 4:"四级", 5:"五级", 6:"六级", 7:"七级", 8:"八级", 9:"九级", 10:"十级", } 在templat
阅读全文
posted @ 2020-11-10 19:27 bingxiaoxiao
阅读(5083)
评论(0)
推荐(1)
2020年10月10日
JS 过滤数组中的某个值
摘要: let arr = [ { type:1, msg:'第一个' }, { type:1, msg:'第二个' }, { type:2, msg:'第三个' } ]筛选出 type == 1 的值 数组对象 let arr2 = arr.filter(item=>{ return item.type
阅读全文
posted @ 2020-10-10 14:49 bingxiaoxiao
阅读(4815)
评论(0)
推荐(0)
2020年9月5日
v-if 和 v-show 的区别
摘要: 简单来说,v-if 的初始化较快,但切换代价高;v-show 初始化慢,但切换成本低 1.共同点 都是动态显示DOM元素 2.区别 (1)手段: v-if是动态的向DOM树内添加或者删除DOM元素; v-show是通过设置DOM元素的display样式属性控制显隐; (2)编译过程: v-if切换有
阅读全文
posted @ 2020-09-05 13:41 bingxiaoxiao
阅读(165)
评论(0)
推荐(0)
2020年8月25日
新建node文件并运行
摘要: 在G盘新建一个文件夹bingxiaoxiao(盘符文件夹名字可自行定义),然后新建一个a.js,内容如下: console.log('你真的好傻好傻')let a = b = 3let c = a + b console.log(c) cdm 运行:找到对应的盘符 然后 node a.js 运行
阅读全文
posted @ 2020-08-25 16:05 bingxiaoxiao
阅读(247)
评论(0)
推荐(0)
2020年8月17日
深入理解JavaScript的执行机制(同步和异步)
摘要: 同步的任务没有优先级之分,异步执行有优先级,先执行微任务(microtask队列),再执行宏任务(macrotask队列),同级别按顺序执行 不论是面试求职,还是日常开发工作,我们经常会遇到这样的情况:给定的几行代码,我们需要知道其输出内容和顺序。因为JavaScript是一门单线程语言,所以我们可
阅读全文
posted @ 2020-08-17 11:34 bingxiaoxiao
阅读(3284)
评论(0)
推荐(1)
2020年8月12日
HBuilderX scss/sass 使用教程
摘要: 安装node-sass插件 在HBuilderX中,使用scss/sass是需要安装node-sass编译插件的。 点击菜单【工具】-->【插件安装】 如果安装失败,请见:http://ask.dcloud.net.cn/article/35468 写项目的时候 需要在样式中添加的预处理器 lang
阅读全文
posted @ 2020-08-12 10:58 bingxiaoxiao
阅读(4299)
评论(0)
推荐(0)
uniapp引入微信小程序直播组件
摘要: 1. 在工程的manifest.json文件中引入直播插件 "mp-weixin" : { /* 小程序特有相关 */ "usingComponents" : true, "appid" : "xxx", "plugins": { "live-player-plugin": { // 注意填写该直播
阅读全文
posted @ 2020-08-12 10:48 bingxiaoxiao
阅读(3463)
评论(0)
推荐(0)
2020年7月24日
小程序 canvas 画名片
摘要: 用cancas画名片 涉及到技术 原型头像、文字超出换行、字体大小颜色、背景图wxml 页面内容 <view class="pages"> <canvas canvas-id="shareKapian" style="width:{{width}}px;height:{{height}}px;"><
阅读全文
posted @ 2020-07-24 16:45 bingxiaoxiao
阅读(539)
评论(0)
推荐(0)
2020年7月15日
css3新特性总结
摘要: 选择器 :last-child /* 选择元素最后一个孩子 */ :first-child /* 选择元素第一个孩子 */ :nth-child(1) /* 按照第几个孩子给它设置样式 */ :nth-child(even) /* 按照偶数 */ :nth-child(odd) /* 按照奇数 */
阅读全文
posted @ 2020-07-15 15:51 bingxiaoxiao
阅读(170)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
14
下一页
公告