The use of all the properties of an object passed in by props

look at the document and see that there is some confusion here: ide/components-props.html-sharp%E4%BC%A0%E5%85%A5%E4%B8%80%E4%B8%AA%E5%AF%B9%E8%B1%A1%E7%9A%84%E6%89%80%E6%9C%89%E5%B1%9E%E6%80%A7" rel=" nofollow noreferrer "> https://cn.vuejs.org/v2/guide.

if you want to pass in all the properties of an object as prop, you can use v-bind with no parameters (instead of v-bind:prop-name). For example, for a given object post:

post: {
id: 1,
title:"My Journey with Vue"
}
the following template:

< blog-post v talk binding = "post" > < / blog-post >
is equivalent to:

< blog-post
vMub bindvir id = "post.id"
vMicure bindvlel = "post.title"

< / blog-post >

so the question arises: what does the child component props receive this post object from the data passed by the parent component through vMerbind = "post"?

Apr.11,2021

if you receive it, then directly

{
    props: ['id', 'title'],
}

is fine, which is equivalent to writing a little less code when passing values.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c19f-2c2dd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c19f-2c2dd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?