Vue data is stored and displayed on the page

The end result of

clipboard.png
vue

clipboard.png
implementation is to refresh the page and chat records of two people

I would like to ask all the great gods to give us a train of thought in one or two.

Feb.28,2021

is stored in localstorage. When creating, read it out and put it in data


page is displayed in the form of traversal, and save
data structure
data = [{name:'a',msg:'hahha',] while chatting. Date:xxx}, {name:'b',msg:'hahha',date:xxx}],
is roughly written as
v-for = 'let i of data'
< p VMI > right:i [' name'] = user "> {{i.name}}: {{i.msg}}

Menu