Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vue.js Vue 3与Vue 2'的等价物是什么;是吗?_Vue.js_Vuejs3 - Fatal编程技术网

Vue.js Vue 3与Vue 2'的等价物是什么;是吗?

Vue.js Vue 3与Vue 2'的等价物是什么;是吗?,vue.js,vuejs3,Vue.js,Vuejs3,我看到有\uuuuu vueParentComponent,但我现在不得不说\uuuuu vueParentComponent.props.x,而不是\uuuuu vue\uux。此外,我看不到如何访问在beforeCreate方法中创建的自定义变量(针对组件实例)。下面的内容似乎可以让您访问所需的所有内容: __vueParentComponent.ctx

我看到有
\uuuuu vueParentComponent
,但我现在不得不说
\uuuuu vueParentComponent.props.x
,而不是
\uuuuu vue\uux
。此外,我看不到如何访问在
beforeCreate
方法中创建的自定义变量(针对组件实例)。

下面的内容似乎可以让您访问所需的所有内容:

__vueParentComponent.ctx