How does vue view the data of a variable in the console?

for example, how should I view the data of test in the console? Why did I report an error like that in my picture

<!DOCTYPE html>
<html>
<head>
   <title></title>
   <style type="text/css">
   </style>
   <script src="vue.js"></script>
   <script type="text/javascript">
      window.onload=function(){
         var vm=new Vue({
               el:"-sharpapp",
               data:{
                test:111
               }
         })
      }
   </script>
</head>
<body>
<div id="app">
</div>
</body>
</html>

Apr.17,2021

var vm = new Vue({...})
console.log(vm.test);

read the first item output in the console in English. Click on the next link. When
is done, you will find that debugging is so convenient


vue devtools

.
Menu