Vue.js change {{ }} tags

后端 未结 5 1905
野的像风
野的像风 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条回答
  •  [愿得一人]
    2020-11-30 03:23

    Use this code to change template engine in vue js

     new Vue({
            el: '#app',
            data: {
                message: 'hello world'
            } ,
            delimiters: ['<%' , '%>']
        });
    

提交回复
热议问题