L3m0n
V2EX  ›  问与答

vue.js 2.0 的 delimiters 问题

  •  
  •   L3m0n · Feb 6, 2017 · 1466 views
    This topic created in 3411 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   ·   4262 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 00:09 · PVG 08:09 · LAX 17:09 · JFK 20:09
    ♥ Do have faith in what you're doing.