Code Monkey home page Code Monkey logo

chat-demo's Introduction

chat-demo

使用vue2+typescript搭建的单页面应用,该demo模仿QQ设计聊天页面,可添加窗口,可自动识别URL,完成组件的定义和使用。

采用技术栈

Vue2.0 + TypeScript + webpack;

设计思路

将每个form封装成单独的组件,创建的时候动态创建该组件,删除的时候卸载该组件即可。尤其注意删除的时候也要删除内存中缓存的垃圾数据;

使用方法

a.npm install安装依赖包;

b.npm start开发环境查看,npm run build 生产环境打包,启动后浏览器输入 http://localhost:4200 即可查看效果;

c.若不安装依赖,直接在dist目录中用chrome浏览器打开index.html即可。

效果图预览

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.