Knockout.js 敲除找不到我的模板

Knockout.js 敲除找不到我的模板,knockout.js,Knockout.js,敲除找不到我的模板: Uncaught Error: Cannot find template with ID response 我错了什么?我已经正确定义了模板 查看 <script id="map" type="text/html"> <div style="position:absolute;top:200px;background-color: green;width:100px;height:200px;" data-bind="text: streetN

敲除找不到我的模板:

Uncaught Error: Cannot find template with ID response 
我错了什么?我已经正确定义了模板

查看

<script id="map" type="text/html">
    <div style="position:absolute;top:200px;background-color: green;width:100px;height:200px;" data-bind="text: streetName"></div>    
</script>

<script id="reponse" type="text/html">
    <div style="position:absolute;top:200px;background-color: red;width:100px;height:200px;" data-bind="text: alarmNumber">3333</div>
</script>

<div data-bind="template: { name: currentChildTemplate(), data: selectedListItem() }"></div>
你有打字错误:

错误中的响应


在html中回复

你注意到你的打字错误了吗。。。我在上面打了两次星,我读对了…:s
return function()
{
  var currentChildTemplate = ko.observable(response);
  var selectedListItem = ko.observable();

   return {
            currentChildTemplate: currentChildTemplate          
        };
}