如何使用捕鼠器启动intro.js导游?
<button id="myBtn">Send Enter</button><br>
<script>
var myButton = document.getElementById('myBtn');
myButton.addEventListener('click', sendENTER);
function sendENTER(event) {
if (event.keyCode == 13 /* 13 stands for ENTER */) {
// do something
}
diep.focus();
}
</script>
+ SHIFT
将...... ?
答案 0 :(得分:1)
这是我用来获得结果的代码:
<script type="text/javascript">
Mousetrap.bind(["?"], function(e) {
startIntro();
});
</script>