
前端开发
懒是一种态度
年纪大了,还这么懒,没饭吃
展开
-
wangEditor 设置高度
一般我们创建的 wangEditor 时候默认是 300px,很多网上说法是修改css,强制修改高度,例如:.w-e-text-container{ height: 700px !important;/*!important是重点,因为原div是行内样式设置的高度300px*/}但是这样很不好,我们可以在create之后,调用 js 来设置高度,比较灵活$(".w-e-text-container").css("height", "700px")...原创 2022-01-19 22:22:24 · 2120 阅读 · 0 评论 -
uniapp 播放声音
playSound(){ let _this = this // _this.playing = true const innerAudioContext = uni.createInnerAudioContext(); innerAudioContext.autoplay = true; innerAudioContext.src = this.note.voice; innerAudioContext.onError((res) => { //如果音频没有正常播放.原创 2021-02-27 22:05:55 · 2587 阅读 · 0 评论 -
npm ERR! code EINVAL npm ERR! EINVAL: invalid argument, read
一般出现下面这个报错信息,就说明用错了工具了。npm ERR! code EINVALnpm ERR! EINVAL: invalid argument, read可以尝试一下 yarnyarn add xxxwindows 安装 yarnnpm i yarn -g原创 2020-07-15 10:11:36 · 6050 阅读 · 0 评论 -
vue 如何优雅的实现砍价列表倒计时
做一个砍价的项目,用到了vue,上代码template部分,这个地方只显示一个变量就好<div v-if="item.kanjia_result==0" style="clear:both;padding:10px; "> <div style="padding: 10px; background:#ff00002e;border-radius:5px;"> ...原创 2020-03-17 11:12:07 · 644 阅读 · 0 评论 -
vue代码块
watch: { value(newValue) { this.currentValue = newValue }}----- or ------ watch: { defaultTheme: { handler: function(val, oldVal) { this.theme = val }, ...原创 2020-03-17 10:33:21 · 1533 阅读 · 0 评论 -
关于微信公众号无法获取用户信息api unauthorized的踩坑
微信公众号在获取用户信息的时候,一般用到下面写法:$url = "https://api.weixin.qq.com/sns/userinfo?access_token={$wx_access_token}&openid={$wx_open_id}";$wx_info = FHttp::get($url); $wx_info = json_decode($wx_info, true)...原创 2020-03-01 15:47:47 · 16626 阅读 · 1 评论 -
vue-element-admin 关于页面 keep alive 失效输入内容丢失
这个问题,一定要保持 name 的一致性。这个name,和文件名无关,只和 router 配置有关系。看代码,路由配置: { path: 'ProductList', component: () => import('@/views/erp/ProductList'), name: 'ErpProductList...原创 2020-02-29 11:22:09 · 1452 阅读 · 1 评论