<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jin Zhiming</title>
    <description>The latest articles on DEV Community by Jin Zhiming (@jzm2000).</description>
    <link>https://dev.to/jzm2000</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F931486%2F057d588c-a3ee-4f20-9ea0-1b903014ae12.png</url>
      <title>DEV Community: Jin Zhiming</title>
      <link>https://dev.to/jzm2000</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jzm2000"/>
    <language>en</language>
    <item>
      <title>Vue2的v-bind.sync</title>
      <dc:creator>Jin Zhiming</dc:creator>
      <pubDate>Thu, 10 Nov 2022 02:29:57 +0000</pubDate>
      <link>https://dev.to/jzm2000/vue2de-v-bindsync-12p5</link>
      <guid>https://dev.to/jzm2000/vue2de-v-bindsync-12p5</guid>
      <description>&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;This is the parent component!&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;template&amp;gt;    
&amp;lt;div&amp;gt;    　　
  &amp;lt;children v-bind:title.sync="title"/&amp;gt;    
&amp;lt;/div&amp;gt;
&amp;lt;/template&amp;gt;
&amp;lt;script&amp;gt;
export default {
　　data(){
　　　　return{
　　　　　　　title:"学习vue2"
　　　  }　　
    }
}
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2.This is the children component!We all know that the props that a parent component sends to a child cannot be changed. However, using this method you can change the props that a parent component sends to a child!&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;template&amp;gt;
    &amp;lt;div&amp;gt;
        &amp;lt;span&amp;gt;标题:{{title}}&amp;lt;/span&amp;gt;
        &amp;lt;el-button @click="update"&amp;gt;点击修改&amp;lt;/el-button&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/template&amp;gt;
&amp;lt;script&amp;gt;
    export default {
        name:"children",
        data(){
            return{}
        },
        props:{
            title:String
        },
        methods:{
            update(){
                this.$emit("update:title",'发生改变')
            }
        }
    }
&amp;lt;/script&amp;gt;
&amp;lt;style&amp;gt;&amp;lt;/style&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;However, this api was deprecated at vue3！^_^&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
