码迷,mamicode.com
首页 > 其他好文 > 详细

kendo模板 Uncaught Error: Invalid template:' 报错

时间:2016-08-15 13:02:37      阅读:1336      评论:0      收藏:0      [点我收藏+]

标签:

I was having a problem with a grid toolbar template because of a # in a href
Worked out that I needed to excape the # with \\\ and not \\

<script type="text/x-kendo-template" id="toolbarTemplate">
     <div class=‘toolbar‘>
         <a id="createButton" class="k-button" href="\\\#">Create</a>
     </div>
</script>

and not

<script type="text/x-kendo-template" id="toolbarTemplate">
    <div class=‘toolbar‘>
        <a id="createButton" class="k-button" href="\\#">Create</a>
    </div>
</script>

I suppose it is kind of obvious, but hopefully it will help someone...

kendo模板 Uncaught Error: Invalid template:' 报错

标签:

原文地址:http://www.cnblogs.com/wodo2008/p/5772339.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!