摘要:
问题:document.documentElement.scrollTop或者document.body.scrollTop一直为0 原因:浏览器的兼容问题 解决:document.documentElement.scrollTop = document.body.scrollTop= window 阅读全文
posted @ 2021-09-29 09:58
chicidol
阅读(572)
评论(0)
推荐(0)
摘要:
报错原因:vuex 1.组件中v-model=“XXX”,而XXX是vuex state中的某个变量 2.vuex中是单项流,v-model是vue中的双向绑定,在computed中只经过get获取参数值,没有set没法改变参数值 解决办法: 1.在computed中设置get和sets <inpu 阅读全文
posted @ 2021-09-26 18:13
chicidol
阅读(227)
评论(0)
推荐(0)
摘要:
<template> <div class="choose-item"> <div v-for="(item,index) in data" :key="index"> <label> <span>{{item.name}}</span> <input type="radio" name="pay" 阅读全文
posted @ 2021-09-24 10:34
chicidol
阅读(480)
评论(0)
推荐(0)
摘要:
安装:npm install vue-picture-preview-extend main.js中引入: import vuePicturePreview from 'vue-picture-preview-extend' Vue.use(vuePicturePreview) 在根组件App.vu 阅读全文
posted @ 2021-09-24 10:26
chicidol
阅读(1239)
评论(0)
推荐(0)
摘要:
//assets->font->myFont.css @font-face { font-family: 'oppoSansRe'; src: url('./SysSans-En-Regular.otf'); } 在assets下的font文件夹里放入SysSans-En-Regular.otf字体 阅读全文
posted @ 2021-09-08 18:17
chicidol
阅读(87)
评论(0)
推荐(0)
摘要:
npm install mint-ui npm install babel-plugin-component //babel.config.js module.exports = { presets: [ '@vue/cli-plugin-babel/preset' ], "plugins": [[ 阅读全文
posted @ 2021-09-08 18:10
chicidol
阅读(101)
评论(0)
推荐(0)
摘要:
一般安卓手机可以自动播放,但是ios和部分oppo机型无法自动播放,需要手动触发,所以需要分开处理 可以自动播放的机型,进入页面就自动播放,无法自动播放的机型,进入页面呈暂停状态 audio有play和canplay两个事件 可以自动播放时,会先触发play事件再触发canplay事件 无法自动播放 阅读全文
posted @ 2021-09-08 18:01
chicidol
阅读(733)
评论(0)
推荐(0)
浙公网安备 33010602011771号