2013-01-03 1 views
0

애매 모호한 질문이지만 매우 간단합니다. Mvc 4와 함께 사용하려면이 jquery 라이브러리를 올바르게 설정하고 있는지 잘 모르겠습니다. http://www.jqwidgets.commvc4에서 jqx jquery 라이브러리를 어떻게 사용합니까?

데모가 작동하지 않습니다. 오류가 없으며 단순히 아무 것도하지 않습니다. 예 :

@section pageScripts 
{ 
    <!-- add the jQuery script --> 
    <script type="text/javascript" src="~/scripts/jquery-1.8.2.min.js"></script>  
    <!-- add the jQWidgets framework --> 
    <script type="text/javascript" src="~/jqwidgets/jqwidgets/jqxcore.js"></script> 
    <!-- add one or more widgets --> 
    <script type="text/javascript" src="~/jqwidgets/jqwidgets/jqxbuttons.js"></script> 
    <!-- add one of the jQWidgets styles --> 
    <link rel="stylesheet" href="~/jqwidgets/jqwidgets/styles/jqx.darkblue.css" type="text/css" /> 

    <script type="text/javascript"> 
     $(document).ready(function() { 
      var theme = getTheme(); 
      var source = '@Model.Friends'; 
      $('#friendsList').jqxDropDownList({ source: source, selectedIndex: 1, width: '200', height: '25', theme: theme }); 
     }); 
    </script> 
} 

<div id='friendsList'></div> 

이것은 사이트에서 제공 한 예제이지만 아무 것도 수행하지 않습니다. 나는 또한 어떤 컨트롤도 인텔리 센스 (VS2012)에서 나타나지 않는다는 것을 알아 냈습니다.

는 나는이 정말 새로운 해요 번들로 구성해야합니다 무언가 또는 _layout.cshtml

에 렌더링이 있다고 생각한다. 웹에서 많은 답변을 얻을 수 없었습니다. 어떤 도움이 필요합니까?

답변

관련 문제