Tag: intro.js

如何在meteor1.4.1.1中使用intro.jsforms的npm包?

我正在尝试在我的meteor应用程序中使用intro.js。 import { Template } from 'meteor/templating'; import { ReactiveVar } from 'meteor/reactive-var'; // import introJs from 'intro.js'; var introJs = require('intro.js'); import './main.html'; …..//some code here Template.hello.events({ 'click button'(event, instance) { // increment the counter when button is clicked instance.counter.set(instance.counter.get() + 1); }, 'click #introjs'(e,i){ console.log("call me"); introJs("#introjs").start(); } }); 但我给 TypeError:introJs不是函数 我如何解决这个问题? 谢谢。