0
나는 sth를 이렇게하고 싶습니다. http://jsfiddle.net/kfEfw/115/ kendo.template (....)에서 변수의 값을 확인하고 싶습니다. 특정 예제에서는 x 변수를 인식하지 못하고 템플릿에 x를 전달하는 방법이 있는지 알고 싶습니다. 사전에검도 UI 템플릿 문제
var temp = 0; //i want to pass this variable in the template and check it's value
/if temp = 0 I need to render sth and if temp has other value I want to render sth else
window.kendouiTemplate = kendo.template("<div><h1 class='header'><#= data.header#></h1><ul
class='list'><# for (var i = 0, l = data.list.length; i < l; i++) {
#><#if(data.list[i]%2==0){#><li class='item'><#= data.list[i] #></li><#}#><# } #></ul>
</div>", {useWithBlock:false});
감사합니다, 아르테미스
더 구체적인 제목을 부여해도 되겠습니까? 같은 문제가있는 다른 사람들이 귀하의 질문을 찾도록 도울 것입니다. –