javascript - 当phalcon 遇上vue ,{{}} 变量赋值的问题
黄舟
黄舟 2017-05-16 12:58:50
0
2
327

之前项目一直用的都是phalcon 框架,使用volt 模板引擎,赋值变量的时候 都是用的是
双大括号的赋值 ,如{{data}}
最近看到vue,感觉功能还是非常强大的 ,想接入,做多页面使用,但是vue的 变量赋值的时候也是使用双大括号{{}},
这样就会造成冲突,服务端编译的时候,会先编译模板 ,
想请问有人遇到类似的情况吗,有没有什么好的解决方法

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all (2)
世界只因有你

http://vuejs.org/v2/api/#deli...
I just read the documentation. Vue supports custom separators. Thanks for the solution @

    世界只因有你

    I have never used the phalcon framework

    But there will definitely be conflicts

    After roughly browsing the document, I think it can be solved using literals
    {{ "{{" }}

    Looking forward to better solutions

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!