正在安装Quojs

Installing Quojs

本文关键字:Quojs 安装      更新时间:2023-09-26

我正在尝试安装Quojs,一个手势库,但我得到了以下错误:

TypeError: $$(...).tap is not a function

你知道我该怎么做才能让它发挥作用吗?

<!DOCTYPE html>
<html>
<head>
    <title>The Touc Project</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
    <h1>TOUC !</h1>
    <!-- js -->
    <script type="text/javascript" src="bower_components/quojs/quo.js"></script>
    <script type="text/javascript">
    $$('h1').tap(function(e){
        console.log('tap');
    });
    </script>
</body>
</html>

检查Quojs的源url并尝试使用

$$('h1').tap(function(){
    console.log('tap');
});