2013-10-04 3 views
0

바인딩을 구문 분석 할 수없는 이유가 확실하지 않습니다. 각 바인딩에는 내용이 포함되어 있습니다. 내가 도움을 공유하는 내 자바 스크립트의 어떤 다른 부분 모르겠습니다잡히지 않은 오류 : 바인딩을 파싱 할 수 없습니다. 녹아웃

var getRoles = function() { 
     Ajax.Get({ 
      Url: ..., 
      DataToSubmit: {id: properties.Id }, 
      DataType: "json", 
      OnSuccess: function (roleData, status, jqXHR) { 
       // bind role types 
       bindModel(roleData); 

       Ajax.Get({ 
        Url: ..., 
        DataToSubmit: { pageNumber: 1, id: properties.Id }, 
        DataType: "json", 
        OnSuccess: function (userData, status, jqXHR) { 

        } 
       }); 
      } 
     }); 
    }; 

:

Uncaught Exception (js): Uncaught Error: Unable to parse bindings. 
Message: ReferenceError: Users is not defined; 
Bindings value: template: { name: 'grid', foreach: Users} 

보기 :

<div data-bind="foreach: RoleTypes"> 
      <h3><!--ko text: RoleName--><!--/ko--> (<!--ko text: UserCount--><!--/ko-->)</h3> 
      <div id="gridView" data-bind="template: { name: 'grid', foreach: Users}"> 
       <section id="Images"> 
        <section id="users"></section> 
       </section> 
      </div> 
     </div> 

자바 스크립트 이 오류 메시지입니다 이걸로 내게 알려줘.

답변

관련 문제