• vue.js与后台{{}}冲突的解决办法


    用delimiters替代{{}}

    <!DOCTYPE html>

    <html>
     
        <head>
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        </head>
     
        <body>
     
            <div id="app">
    ccx num /ccx
             
                 
            </div>
        </body>
        <script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
        <script src="js/mb.js" type="text/javascript" charset="utf-8"></script>
        <script>
           
            var vm = new Vue({
     
                el: "#app",
                data: {
                    name: "苹果",
                    price: 10,
                    num: 1
                },
            delimiters:['ccx',"/ccx"]
     
            });
        </script>
     
    </html>
  • 相关阅读:
    现在SimpleMemory的CSS(by BNDong)
    I AK IOI
    最大半联通子图
    曾经SimpleMemory的CSS
    幼儿园战争
    炸掉卡西欧991CNX
    LuoguP1131选择客栈
    2019CSP-S2养成任务
    NOIP2013&NOIP2018&USACO 三倍经验铺路题巧妙解法
    NOIP2018D2T1 旅行
  • 原文地址:https://www.cnblogs.com/ydam/p/9217081.html
Copyright © 2020-2023  润新知