Vue.js change {{ }} tags

后端 未结 5 1916
野的像风
野的像风 2020-11-30 03:01

I want to change the {{ something }} by <% something %> in Vue.js, how could I achieve that, is it even possible?

An equivalent for w

5条回答
  •  Happy的楠姐
    2020-11-30 03:26

    You should modify the delimiters property of configuration object.

    Vue.config.delimiters = ['<%', '%>']
    

    Edit: This solution works for Vue 1.x and lower. See @Skip and @jaynabonne responses for Vue 2.x solution

提交回复
热议问题