Skip to content

[vue] 你有使用过render函数吗?有什么好处? #318

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

[vue] 你有使用过render函数吗?有什么好处?

Activity

dlutwuwei

dlutwuwei commented on Aug 13, 2019

@dlutwuwei

template也会翻译成render,只有一点,template中元素的tag_name是静态的,不可变化,使用createEelment可以生成不同tag_name, 比如h1 ... h6, 可以通过一个number变量控制

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dlutwuwei@haizhilin2013@censek

        Issue actions

          [vue] 你有使用过render函数吗?有什么好处? · Issue #318 · haizlin/fe-interview