모바일 버튼이 표시되지 않는다는 점을 제외하고는 예상대로 작동하는 다음 코드를 사용하고 있습니다.jquery-mobile 버튼이 스크립트에 표시되지 않음
div id="items">
<script id="item-template" type="text/template">
<input type="checkbox" id="toggle" {[ print(done ? '' : 'checked') ]} />
<span class="text">{{ text}}</span>
<a id="save" data-role="button" data-inline="true" data-icon='plus'>Save</a>
나는 등 버튼을 인쇄 시도하지만, querymobile 버튼 스크립트 내에서 작동하지 않는 이유는 무엇입니까?
var tpl = _.template($("#item-template").html(), {fn : function() {alert("clicked!");});
및 템플릿 : 템플릿에 함수를 통과하고 같은 onclick
이벤트를 호출 할 수 있습니다
그래서 당신의 말, 백본에서 모든 값을 전달한 후에는 데이터를 공유하는 div를 새로 고쳐야합니까? –