js / vendor / jquery.js返回404错误

时间:2016-02-08 14:55:13

标签: javascript php jquery

enter image description here我的jQuery返回404错误。我最近发现脚本是以错误的方式被调用的。有人建议我做一些改变。我无法做出改变或打破主题。我不确定哪个文件控制它。以下是一些例子。

header.php - 斜体<link rel="stylesheet" href="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/css/foundation.css" /> <script src="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/js/vendor/*"></script>* <link rel="stylesheet" href="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/style.css" /> <?php wp_head(); ?> 如果删除了我的主题,那么我不得不把它放回去。我被告知应该删除

<script src="<?php echo esc_url( home_url( '/' ) );
?>wp-content/themes/cheaptubes/js/vendor/
    wp_register_script( 'reverie-js', get_template_directory_uri() . '/js/foundation.min.js', array( 'jquery' ), '', true );
<script>

footer-home.php

<script src="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/js/vendor/jquery.js"></script>
<script src="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/js/foundation.min.js"></script>
<script>
    (function($) {
        $(document).foundation();
    })(jQuery);
</script>

footer.php

<script src="<?php ech esc_url(home_url( '/' ) ); ?>wp-content/themes/cheaptubes/js/vendor/

layout.php top

<script src="<wp_register_script('reverie-js', get_template_directory_uri() . '/js/foundation.min.js', array( 'jquery' ), ", true );

<body ng-app="fileUpload" ng-controller="MyCtrl">
 <h4>Upload on file select</h4>
  <button type="file" ngf-select="uploadFiles($file, $invalidFiles)"
      accept="image/*" ngf-max-height="1000" ngf-max-size="1MB">
  Select File</button>
  <br><br>
  File:
  <div style="font:smaller">{{f.name}} {{errFile.name}} {{errFile.$error}} {{errFile.$errorParam}}
  <span class="progress" ng-show="f.progress >= 0">
      <div style="width:{{f.progress}}%"  
           ng-bind="f.progress + '%'"></div>
  </span>
 </div>     
  {{errorMsg}}
</body>

我一直在网上搜索好的javascript验证器并取得了很大的成功

1 个答案:

答案 0 :(得分:0)

404表示网址无效,在服务器上找不到该文件。您正在寻找的实际网址是: http://cheaptubes.com/wp-content/themes/cheaptubes/js/vendor/jquery.js

我认为你应该尝试删除你用斜体字表示的整行,我想你已经在footer.php中包含了jquery文件。