EXTJS添加JQ支持

<link rel="stylesheet" type="text/css"  
    href="../../ext/resources/css/ext-all.css" />   
  
<!-- 添加jQuery支持 -->   
<script type="text/javascript"  
    src="../../ext/adapter/jquery/jquery.js"></script>   
<script type="text/javascript"  
    src="../../ext/adapter/jquery/jquery.cookie.js"></script>   
<script type="text/javascript"  
    src="../../ext/adapter/jquery/ext-jquery-adapter.js"></script>   
  
<script type="text/javascript" src="../../ext/adapter/ext/ext-base.js"></script>   
<script type="text/javascript" src="../../ext/ext-all.js"></script>   
<script type="text/javascript" src="./change_style.js"></script>  

		<link rel="stylesheet" type="text/css"
			href="../../ext/resources/css/ext-all.css" />

		<!-- 添加jQuery支持 -->
		<script type="text/javascript"
			src="../../ext/adapter/jquery/jquery.js"></script>
		<script type="text/javascript"
			src="../../ext/adapter/jquery/jquery.cookie.js"></script>
		<script type="text/javascript"
			src="../../ext/adapter/jquery/ext-jquery-adapter.js"></script>

		<script type="text/javascript" src="../../ext/adapter/ext/ext-base.js"></script>
		<script type="text/javascript" src="../../ext/ext-all.js"></script>
		<script type="text/javascript" src="./change_style.js"></script> 

Js代码  
if($.cookie('ext.theme') != null && $.cookie('ext.theme') != 'default'){     
            Ext.util.CSS.swapStyleSheet("theme", $.cookie('ext.theme'));     
        }else{   
            $.cookie('ext.theme', '../../ext/plugins/css/xtheme-red5.css');     //设置cookie   
        }  

if($.cookie('ext.theme') != null && $.cookie('ext.theme') != 'default'){  
			Ext.util.CSS.swapStyleSheet("theme", $.cookie('ext.theme'));  
		}else{
			$.cookie('ext.theme', '../../ext/plugins/css/xtheme-red5.css');		//设置cookie
		}

相关推荐