L3m0n
V2EX  ›  问与答

vue.js 2.0 的 delimiters 问题

  •  
  •   L3m0n · Feb 6, 2017 · 1523 views
    This topic created in 3459 days ago, the information mentioned may be changed or developed.

    看到网上说 2.0 已经废除这种配置。

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

    然后变成下面这种在声明中的一个参数,请问各位表哥们这个能否做到像全局配置文件一样,配置一次就好啦。下面这样的情况我感觉是 new 一次就要delimiters: ["<%","%>"]一次,有点麻烦。

    new Vue({
        el: '#app',
        data: data,
        delimiters: ["<%","%>"]
    });
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2992 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 14:36 · PVG 22:36 · LAX 07:36 · JFK 10:36
    ♥ Do have faith in what you're doing.