私はPHPが初めてです。jqueryの CDN を統合したい。すでにファイルをインデックスに統合しています。php:
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/js/cc_jquery.js" type="text/javascript"></script>
ファイルパスの代わりにリンクファイルを実装する方法は? 私は最も感謝しています!ありがとう :)
CDN
URLに直接含めることができます。
<script src="http://codeorigin.jquery.com/jquery-2.0.3.min.js"></script>
または、php からインクルードするには、次のようにします。
echo "<script src='http://codeorigin.jquery.com/jquery-2.0.3.min.js'></script>";
jQuery の CDN: http://codeorigin.jquery.com/