Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为按钮控制器使用生成器。我在找出下面提到的代码时遇到问题?“如果触摸按钮,如何执行代码,向屏幕发送消息?”
对不起,我是 Javascript 的初学者。
在此处查看示例:https ://github.com/AirConsole/airconsole-construct2/blob/master/construct2%20projects/pong/controller_resources/js/main.js
基本上,您监听按钮上的事件并向屏幕发送消息:
$('#button').on("touchend", function (event) { airConsole.message(AirConsole.SCREEN, { message: value }); });
Getting this error, trying to use Masonry with imageLoaded:
"Object # has no method 'imagesLoaded'"
The links to the ne