首页 > 其他 > 详细

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

时间:2016-08-15 13:00:31      阅读:503      评论: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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!