How is v-for used in vuejs (or how to list rendering)?

data that v-for can fetch, but why is there an error? Do not understand this error, how to write,
by the way, how does nodejs distinguish between server scripts and front-end pages, how to parse and interpolate into the template,
or how to interact with the browser,
self-study, no seniors can ask, so come here to ask a bold question

Mar.03,2021

the error is reported because you need to provide a unique key value ide/list.html-sharp%E7%94%A8-v-for-%E6%8A%8A%E4%B8%80%E4%B8%AA%E6%95%B0%E7%BB%84%E5%AF%B9%E5%BA%94%E4%B8%BA%E4%B8%80%E7%BB%84% for the entry of v-for. The reason why E5%85%83%E7%B4%A0 "rel=" nofollow noreferrer "> vue Chinese documents


reports an error v-for is that the loop of a subcomponent must have key. You can add: key= "title.id" or: key= "key"


that should be two questions.
the first question is answered. Or I suggest you read the document clearly and ask questions. (without looking at the exception, I really want to give you a click on this question.)
the second question you should ask is the back-end rendering of vue. In fact, the back-end rendering is the same.
nodejs runs only on the backend. Just synthesize the script for the front end.
backend rendering is all performed by the backend.

all use virtual dom
so what is virtual dom? It's something that uses js objects to mimic the structure of dom (because dom objects consume memory).
with virtual dom, there is a dom tree in the browser environment.
with the dom tree, you can construct the text content of dom. Just fill it.

Menu