聚合物+jquery+滑溜转盘不工作

聚合物+jquery+滑溜转盘不工作,jquery,polymer,slick.js,Jquery,Polymer,Slick.js,我在Polymer和jQuery选择器之间有一个概念上的问题,特别是关于slick.js插件 这是聚合物元素的定义 <link rel="import" href="../../bower_components/polymer/polymer.html"> <link rel="import" href="../speech-element/speech-element.html"> <script src="../../bower_components/jquer

我在Polymer和jQuery选择器之间有一个概念上的问题,特别是关于slick.js插件

这是聚合物元素的定义

<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../speech-element/speech-element.html">
<script src="../../bower_components/jquery/dist/jquery.min.js"></script>
<script src="../../bower_components/slick/dist/slick.min.js"></script>
<script src="./sequence-speech-questions.js"></script>
<polymer-element name="sequence-speech-questions" attributes="text_list">
<template>
    <link rel="stylesheet" href="sequence-speech-questions.css">
    <div class="single-item">
        <template repeat="{{text in text_list}}">
          <speech-element text="{{text}}"></speech-element>
        </template>
   </div>
</template>
</polymer-element>
最后,jquery选择器不起作用

有人知道如何修复聚合物上的jquery错误


多亏了所有的

我认为jquery在这种情况下不存在于网络组件或聚合的上下文中

也许您应该尝试从主页对jquery进行自己的修改,例如:

$(document).on('DOMNodeInserted', '.single-item', function(){$(this).slick();});
$(document).on('DOMNodeInserted', '.single-item', function(){$(this).slick();});