What is the difference between modifying the props value with the PP operator and modifying the props with + 1 in vue? The code is as follows:

when you encounter the following problems in the process of learning vue, I hope you can help me.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>bus</title>
</head>
<body>
    <div id="app">
        <div>{{coun}}</div>
        <addbtn :count="coun"></addbtn>
        <subbtn :count="coun"></subbtn>
    </div>

    <script src="./vue.js"></script>
    <script>
        var busVM = new Vue();
        var vm = new Vue({
            el:"-sharpapp",
            data:{
                coun:0
            },
            components:{
                "addbtn":{
                    template:`<button @click="addcount">+</button>`,
                    props:["count"],
                    methods:{
                        addcount(){
                            busVM.$emit("changeCount",PPthis.count);
                        }
                    }
                },
                "subbtn":{
                    template:`<button @click="subcount">-</button>`,
                    props:["count"],
                    methods:{
                        subcount(){
                            busVM.$emit("changeCount",this.count-1);
                        }
                    }
                }
            },
            mounted:function(){
                busVM.$on("changeCount",function(val){
                    this.coun = val
                }.bind(this))
            }
        });
    </script>
</body>
</html>

an error like this will be reported when modified with PP in a subcomponent, but not with + 1. Why?

Mar.20,2021

The

error message is very straightforward, saying that you should not modify prop in the child component at all, because they will be overwritten by the parent component anyway. According to the implementation principle of vue, unnecessary state modification can be a drag on performance.

vue thinks this kind of behavior is a common bug, for beginners, so he reports a warning. If you know what you're doing, you can ignore it.

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-1b3e655-2bb89.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-1b3e655-2bb89.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?