会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
我的世界蹦擦擦
CnBlogs
Home
New Post
Contact
Admin
Subscription
上一页
1
2
3
4
5
下一页
2020年8月17日
element-ui 点击登录后再进行表单验证
给input加一个新属性validate-event就可以了<el-input :validate-event="false"> 在输入信息时不会报错,点击登录按钮后再进行表单整体校验
Read More
posted @ 2020-08-17 11:40 我的世界蹦擦擦
Views(927)
Comments(0)
Diggs(1)
2020年8月14日
VUE postcss-px-to-viewport解决PC端适配
安装 postcss-px-to-viewport npm install postcss-px-to-viewport -save 配置 package.json文件 "postcss": { "plugins": { "autoprefixer": {}, "postcss-px-to-view
Read More
posted @ 2020-08-14 15:29 我的世界蹦擦擦
Views(11356)
Comments(0)
Diggs(1)
vue.js监听浏览器窗口宽度变化
首先在data中定义要监听的属性,因为watch侦听器监听的是data中的属性,不能直接监听window export default { data () { return { creenWidth: document.body.clientWidth, } } } 在mouted当中调用windo
Read More
posted @ 2020-08-14 10:35 我的世界蹦擦擦
Views(5344)
Comments(0)
Diggs(1)
2020年6月29日
vue + elemen-ui给el-table表格的每行添加点击事件
<el-table :data="tableData" style="width: 100%"> <el-table-column prop="date" label="日期" width="180"> </el-table-column> <el-table-column prop="name"
Read More
posted @ 2020-06-29 09:55 我的世界蹦擦擦
Views(15679)
Comments(0)
Diggs(0)
2020年6月23日
vue鼠标悬浮切换文字和图片
今天写页面是需要一个功能,列表全部显示图片,鼠标悬浮后显示文字,未悬浮的显示图片,始终有一项显示为文字 当鼠标悬浮至其他项时,如果不对其他项进行鼠标悬浮操作,鼠标移开后,该项依旧显示文字 <div v-for="(item, index) in itemList"> <label>{{ item.n
Read More
posted @ 2020-06-23 11:32 我的世界蹦擦擦
Views(5038)
Comments(0)
Diggs(0)
2020年6月2日
【SVN】Please execute the 'Cleanup' command
使用SVN,在更新过程中出现报错,分支无论提交内容或者拉取都报错 Please execute the 'Cleanup' command. 解决方法一: 右击,点击 TortoiseSVN,选择 Clean up 然后选中 Break write locks,另外两个是默认选中的不用动,最后点击O
Read More
posted @ 2020-06-02 15:53 我的世界蹦擦擦
Views(4325)
Comments(0)
Diggs(0)
2020年5月22日
e.target和 e.currentTarget的区别,及获取节点的方式
e.target 指的是你点击的元素 e.currentTarget 指的是你当前绑定点击事件的元素 <div id='father' @click="click"> <span id='son-one'></span> <span id='son-two'></span> </div> 如上示例结
Read More
posted @ 2020-05-22 15:39 我的世界蹦擦擦
Views(2866)
Comments(0)
Diggs(1)
2020年5月21日
video.js解决动态加载m3u8格式视频的url,视频加载失败的问题
话不多说,直接上代码 下载viedo.js及相关插件 cnpm install video.js --save ccnp install videojs-contrib-hls --save main.js import Video from 'video.js' import hls from '
Read More
posted @ 2020-05-21 14:35 我的世界蹦擦擦
Views(5944)
Comments(0)
Diggs(0)
2020年3月26日
vue3.0版本打包后,index.html页面显示空白怎么办
前几天写一个项目,临时需要打包出一个html文件,用 npm run build 命令打包以后发现index.html打开以后页面是空白的,出现这样的报错: 报这个错的原因其实是生成的index.html文件中引入的文件路径出现问题,需要修改 publicPath 我就去找config文件下的ind
Read More
posted @ 2020-03-26 15:58 我的世界蹦擦擦
Views(3871)
Comments(0)
Diggs(0)
2019年10月22日
简述vue中v-if和v-show的区别及使用场景
vue中的 v-if 和 v-show 二者都可以动态的控制元素的隐藏和显示,但是他们控制的原理是不同的 v-if v-if 控制元素显示或隐藏是把dom元素整个的渲染或者删除,如果删除,也就是页面中不存在这个dom元素,以此达到隐藏的效果; 所以v-if在每次切换的时候都会重新创建或者销毁元素,有
Read More
posted @ 2019-10-22 21:44 我的世界蹦擦擦
Views(6212)
Comments(0)
Diggs(0)
上一页
1
2
3
4
5
下一页
公告