我想在我的流星應用程序中使用intro.js。如何在流星1.4.1.1中使用intro.js表單npm包?
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 is not a function
我該如何解決這個問題? 謝謝。
我也有同樣的問題。你找到什麼了嗎? –
搜索時,我得到了這個https://github.com/zhouzhuojie/meteor-introjs鏈接,看看它是否有益,也讓我知道。 –
@Arjun Chaudhary不,我想找到一種方法。在流星論壇上看到你的這篇文章[link](https://forums.meteor.com/t/not-working-bootstraptour-with-meteor-1-4/28859/6) –