未捕获的TypeError:j不是函数

时间:2017-03-16 14:10:23

标签: javascript jquery

这给出了Uncaught TypeError的错误:j不是函数

此行显示错误

<script>
var j = jQuery.noConflict();
if(j(window).width()<'760') {
  j("#yt_left #layered-navigation .block.block-layered-nav .block-content").hide();
  j("#yt_left #layered-navigation .block.block-layered-nav .block-title").css({"cursor":"pointer"});
  j("#yt_left #layered-navigation .block.block-layered-nav .block-title").click(function() {
    j("#yt_left #layered-navigation .block.block-layered-nav .block-content").toggle();
    j("#yt_left #layered-navigation .block.block-layered-nav .block-title").toggleClass("minimize");
    j("#yt_left #layered-navigation").toggleClass("active");
    j(".sort-by-wrap").toggleClass("hide");
  });

  j("#yt_left #layered-navigation .block.block-layered-nav .block-content dl dd").hide();
  j("#yt_left #layered-navigation .block.block-layered-nav .block-content dl dt").css({"cursor":"pointer"});
  j("#yt_left #layered-navigation .block.block-layered-nav .block-content dl dt").click(function() {
    j(this).next().toggle();
    j(this).toggleClass("minimize");
  });

  j(window).on("scroll", function() {
    if (j(this).scrollTop() > 750) {
      j("#layered-navigation").css({"position":"fixed","top":"0px","left":"0px","z-index":"9999","background-color":"white"});
      j(".sort-by-wrap").css({"position":"fixed","top":"3px","right":"0px","z-index":"9999","background-color":"white"});
    } else {
      j("#layered-navigation").css({"position":"unset"});
      j(".sort-by-wrap").css({"position":"unset"});
    }
  });
}
</script>

请检查此

中的错误
FileUtils.mkdir()

0 个答案:

没有答案