Skip to content

[vue] vue怎么改变插入模板的分隔符? #435

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

[vue] vue怎么改变插入模板的分隔符?

Activity

maozhuo123

maozhuo123 commented on Jul 3, 2019

@maozhuo123

delimiters

radio-qq

radio-qq commented on Jan 1, 2021

@radio-qq

没懂

hyj443

hyj443 commented on Oct 20, 2021

@hyj443

可以在new Vue传入配置对象中设置delimiters,也可以Vue.config.delimiters = ['${', '}']

这么一改,所有用到 {{ }} 插值表达式的地方都要換成 ${ }

ObearO

ObearO commented on Feb 2, 2023

@ObearO

image

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

        @haizhilin2013@ObearO@maozhuo123@censek@hyj443

        Issue actions

          [vue] vue怎么改变插入模板的分隔符? · Issue #435 · haizlin/fe-interview