Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
202 views
in Technique[技术] by (71.8m points)

vue使用函数式组件,render函数里context参数为什么是undefined

image.png
图1是创建了1个函数式组件,
image.png
图二是通过extend()和$mount()生成图1的组件实例,使用时通过vue.$_{name}生成并挂载实例。
image.png
图3是在运行本地项目时打印的内容,发现render函数的第二个参数context为undefined。
求教这是为啥。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...