Replies: 1 comment
-
浏览器原生标签都只能传基本数据类型,如果需要传递复杂对象,有两种方式,一种是我们目前采用的,通过ref拿到组件引用,调用方法传递对象,参考得高级技巧部分;另外一种是将复杂对象jsonString,当字符串传进去,组件里面在进行jsonParase. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
有木有传递复杂对象的方法 web Component 都只能传简单的变量
Beta Was this translation helpful? Give feedback.
All reactions