mounted() {    this.scrollToBottom();  },

  updated: function () {    this.scrollToBottom();  },

 scrollToBottom: function () {
this.$nextTick(() => {
var container = this.$el.querySelector("#chatBox-content-demo");
container.scrollTop = container.scrollHeight;
})
}

必须在HTML上绑定 #chatBox-content-demo 这个id

最新文章

  1. Android Fragment使用(二) 嵌套Fragments (Nested Fragments) 的使用及常见错误
  2. C++的简单“五子棋”游戏,只是核心代码,资源代码未添加
  3. socket 网络编程
  4. [CareerCup] 8.8 Othello Game 黑白棋游戏
  5. win10 enterprise 10240激活:
  6. 【贪心】 BZOJ 3252:攻略
  7. js中对闭包的理解
  8. iOS,长按图片保存实现方法,轻松搞定!
  9. (转)JS页面间传值
  10. UITableView显示不全
  11. android-包签名
  12. 安装webstrom,免激活长久使用
  13. python flask(多对多表查询)
  14. ConcurrenHashMap源码分析(二)
  15. SQLiteOpenHelper与SQLiteDatabase的使用
  16. vue路由懒加载 及import
  17. Ubuntu16系统中安装htpasswd
  18. hdu 2098 分拆素数和(素数)
  19. cpu load过高问题排查
  20. 开发人员如何正确对待BUG?

热门文章

  1. 【解决办法】安装Boost 提示'cl'不是内部或外部命令
  2. SqlServer基礎
  3. 简单的自动清理TIM/QQ聊天垃圾文件方案
  4. 学习笔记-Java面向对象
  5. jdk 1.8 处理 map和list
  6. C# 生成二维码方法(QRCoder)
  7. HelloWorld (用记事本写,在dos窗口里运行)
  8. Nginx结合tomcat 负载均衡
  9. B - Yet Another Palindrome Problem
  10. mqtt抓包