.cshtml
파일로 작성되었지만 js
파일로 이동하려는 일부 JQuery 템플릿 코드가 있습니다. 그러나 js 파일은 <script></script>
을 인식하지 못합니다.js 파일에서 JQuery 템플릿을 작성하는 방법
다음은 tmpl
의 예입니다.
<<
<script type="text/x-jquery-tmpl" id="searchResult">
<li><a href="#" data-name="${Name}">${Name}</a></li>
</script>
>>
감사합니다.