0
를 렌더링 할 수 없습니다내가 상속 백본보기가 백본보기
나는이 렌더링하기 위해 노력하고있어class App.Views.User.Base extends Backbone.View
el: '#main'
initialize: ->
events:
'click .save': 'save'
render: ->
@$el.html @template user: @model
@
class App.Views.User.Registration extends App.Views.User.Base
template: JST['template/users/registration']
save: ->
if not @model.expired()
@model.save {},
error: (model, response) ->
console.log response.responseText
:
Property 'template' of object #<Registration> is not a function
: 나는 오류가 발생했습니다
(new FancySurvey.Views.User.Registration(model: model)).render()
을
무엇이 문제일까요? 감사합니다
때 render'가 호출되는''@의 template'은 무엇이어야 하는가? –
@muistooshort, 그냥 정의되지 않았습니다 – megas
그리고'JST [ 'template/users/registration']'는 템플릿 함수입니까? –