起风了

“路海长 青夜旷 越过群山追斜阳”

用vue写h5网页直播聊天记录字幕滚动条自动下拉

关键词:h5实现直播聊天内容自动上滚 data:{ historys:[], }, watch:{ historys(){ //拉到底 this.$nextTick(function(){ console.log("scrollTop",document.getElementById('talkList').clientHeight,$(".talk-contain-m").scrollTop()); $(".talk-contain-m").scrollTop(document.getElementById('talkList'...

vue实现鼠标移入移出事件

vue mobile模式鼠标移入移出动作,vue 移入移出事件 <div class=”index_tableTitle clearfix” v-for=”(item,index) in table_tit”> <div class=”indexItem”> <span :title=”item.name”>{{item.name}}</span> <span class=”mypor”> <i class=”icon” @mouseenter=”enter(index)” ...

vue.js之checkbok全选及反全选功能

<template> <div> <input type='checkbox' class='input-checkbox' v-model='checked' v-on:click='checkedAll'>全选 <template v-for='checkb in checkboxData'> <input type='checkbox' name='checkboxinput' class='input-checkbox' v-model='checkboxModel' value='{{checkb.id}}'>{{...

vue做批量删除时要注意

用vue做批量删除时,是很容实现的。 但在删除完更新数据时要注意, _.forEach(_this.indexs,function(value){ //_this.shelves.splice(value,1,1);//方法1 _this.shelves.splice(value,1,null);//方法2 console.log('delBookshelves',_this.shelves); } ) 很容易就想到拿数组索引作为了删除下标,如@方法1所示...

vue 设置css背景图片

<div class="z_photo"> <ul class="figure-list"> <li v-for="(vv,i) in vo.images"> <figure :style="{backgroundImage:'url('+vv+')'}"> <a @click="previewImg(i,vo.images)" href="javascript:;"></a> </figure> </li> </ul> </div>

好用的vue分页插件下载

功能介绍: 引入样式文件: <link rel="stylesheet" href="index.css"> 显示分页标签 <vue-nav :cur="cur" :all="all" :callback="callback"></vue-nav> 引入js <script src="vue2.js"></script> <script src="vue-nav.js"></script> 实例化: <script type="te...

vue 更新数据列表里的值

功能点: 点下架的时候,直接删除当列,并从DOM节点消失。 1,先给下架一个事件: <div class="goods" v-for="(good,index) in goods"> <div class="goods_info"> <span class="goods_uptick"> <input type="checkbox"> </span> <span class="goods_upimg"> <img :src=...