Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在ZURB基金会中为应用程序使用jQuery? 应用程序的ZURB基金会使用角度。JS和I无法找到重写这一点的方法,并且能够在我的应用程序中使用jQuery(或JavaScript)。p>_Javascript_Jquery_Css_Angularjs_Zurb Foundation Apps - Fatal编程技术网

如何在ZURB基金会中为应用程序使用jQuery? 应用程序的ZURB基金会使用角度。JS和I无法找到重写这一点的方法,并且能够在我的应用程序中使用jQuery(或JavaScript)。p>

如何在ZURB基金会中为应用程序使用jQuery? 应用程序的ZURB基金会使用角度。JS和I无法找到重写这一点的方法,并且能够在我的应用程序中使用jQuery(或JavaScript)。p>,javascript,jquery,css,angularjs,zurb-foundation-apps,Javascript,Jquery,Css,Angularjs,Zurb Foundation Apps,我的头文件看起来像这样 <link href="./assets/css/app.css" rel="stylesheet" type="text/css"> <script src="./assets/js/foundation.js"></script> <script src="./assets/js/templates.js"></script> <script src="./assets/js/routes.js">

我的头文件看起来像这样

<link href="./assets/css/app.css" rel="stylesheet" type="text/css">
<script src="./assets/js/foundation.js"></script>
<script src="./assets/js/templates.js"></script>
<script src="./assets/js/routes.js"></script>
<script src="./assets/js/app.js"></script>
例如:如果我想用这样的东西:

  // These files are for your app's JavaScript
  appJS: [
  'https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js',
  'node_modules/autosize/src/autosize.js',    
  'client/assets/js/app.js',
  ]
jQuery(window).scroll(function() {     
    var scroll = jQuery(window).scrollTop();
    if (scroll > 140) {
        jQuery('body').addClass('active');
    }
    else {
        jQuery('body').removeClass('active');
    }   
在这一点上,我得到了如下主要错误:

app.js:17SyntaxError:意外标记“,”。中的默认值 当前不支持分解结构参数。 基金会JS:9253错误:[ $注射器:模块]未能实例化 模块应用程序由于:[$injector:nomod]模块“应用程序”为 无法使用的!您要么拼错了模块名,要么忘记加载 信息技术如果注册模块,请确保指定依赖项 作为第二个论点


有人能解释一下我如何在这个项目中实现jQuery功能吗?

到底是什么问题?另外,我建议不要使用
/
来定位您的资产目录,因为这与语义URL不兼容。更好的做法是使用前导的
/
查找资产目录。基本上,我只希望jQuery工作。我按照这些说明操作,当我测试它时,它不会识别我的函数。它只是不断地给出这个错误:
main.js:1ReferenceError:not find variable:jQuery
我将jQuery添加到Gulp文件和我的