我正在使用一个 jquery 库,在这里http://www.jqueryscript.net/menu/iPod-Style-jQuery-Sliding-Drill-Down-Menu-Plugin.html,我正在尝试将它添加到我的应用程序中。这些是我的导入语句:
app.import('other_components/drilldown/css/linkes_drilldown.css');
app.import('other_components/drilldown/src/linkes_drilldown.js');
要使用该库,该函数linkesDrillDown()
必须以$('.drillDownMenu').linkesDrillDown();
. 调用此函数时,会产生以下错误:
undefined is not a function
这基本上意味着该库没有被加载。任何想法,导入语句有什么问题吗?