javascript - Installing Quojs -
i'm trying install quojs, gestures library got following error :
typeerror: $$(...).tap not function
any idea should work ?
<!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>
check source url of quojs , try instead
$$('h1').tap(function(){ console.log('tap'); });
Comments
Post a Comment