2014-02-11 68 views
0

我找遍了互聯網中安裝jQuery的文件,我仍然沒有線索如何安裝它,我用jQuery的文件的電話,但不工作,我在你有很多地方都發現使用registerscriptcore('jquery');我把它放在我的佈局,但仍然無法正常工作..在警予

如何做到這一點,如果我想加載的jQuery庫和自定義庫?

這就是我如何努力。

<head> 
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
     <meta name="language" content="en" /> 
     <!-- blueprint CSS framework --> 

     <?php Yii::app()->clientScript->registerCoreScript('jquery'); ?> 
     <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl;?>/css/screen.css" media="screen, projection" /> 
     <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl;?>/css/print.css" media="print" /> 

     <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl;?>/css/jqueryui/js/jquery.js"></script> 
<!-- <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl;?>/css/jqueryui/js/jqueryui.min.js"></script> --> 
     <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl;?>/css/jQueryte/jqueryte.js"></script> 
     <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl;?>/css/jQueryte/jqueryte.css"> 
     <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl;?>/css/bootstrap/js/bootstrap.js"></script> 
     <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl;?>/css/bootstrap/css/bootstrap.min.css"> 
     <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl;?>/css/font-awesome/css/font-awesome.min.css"> 

     <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl;?>/css/drag/style.css"> 
     <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl;?>/css/drag/script.js"></script> 

     <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" /> 
     <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" /> 
     <title><?php echo CHtml::encode($this->pageTitle); ?></title> 
</head> 
+0

的網址是什麼,你看到的HTML源代碼? –

+0

嘗試暗示這一行: <腳本類型= 「文本/ JavaScript的」 SRC = 「?請求 - >的baseUrl;>/CSS/jQueryUI的/ JS /的jquery.js」 > 由於jquery已經包含在覈心腳本註冊調用中 –

回答