How to implement a comment framework using Vue

亚连
Release: 2018-06-13 10:25:22
Original
3252 people have browsed it

This article mainly introduces the implementation of the simple Vue comment framework (implementation of the parent component). Now I share it with you and give it as a reference.

I recently saw a requirement:

  1. Implement a comment function, requiring the comment list to be displayed in pages

  2. Correspondingly Module implementation is componentized

  3. Can display the publisher, publishing time and content

It is not difficult at first glance, but in the specific implementation Still encountered some problems. In addition, because it is my first time to use vue, I am confused when I read the documentation. Without further ado, let’s analyze how each module is implemented.

Source code address

Comment form code:

  
Copy after login
  
Copy after login

The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.

Related articles:

How to implement web page grabbing red envelopes in Javascript

##Detailed introduction to high-order components in React

Detailed interpretation of react backend rendering template

The above is the detailed content of How to implement a comment framework using Vue. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
vue
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn