kendo.template("<a href='\\#'>link</a>");
<script type="text/x-kendo-template" id="myTemplate"> <a href="\#">link</a> </script>
<script> var myTemplate = kendo.template($("#myTemplate").html()); console.log(myTemplate({})); </script>
kendo.template("<a href='\\#'>link</a>");
<script type="text/x-kendo-template" id="myTemplate"> <a href="\#">link</a> </script>
<script> var myTemplate = kendo.template($("#myTemplate").html()); console.log(myTemplate({})); </script>
转载于:https://www.cnblogs.com/chengshixiaonongming/p/10373136.html