如何在科尔多瓦的移动应用程序中使用图像来显示客户?

时间:2016-07-22 10:25:09

标签: jquery cordova cordova-plugins

enter image description here

我想在我的cordova应用中显示这样的文字。是否有任何插件可以用图像显示这些手势,还是有其他方式。 你的帮助可能对我有用。

1 个答案:

答案 0 :(得分:0)

我找到了多个插件,但请记住它只能用于具有手势功能的插件。请查看一些插件。cordova-plugin-shake

其代码示例:

var onShake = function () {
  // Fired when a shake is detected
};

var onError = function () {
  // Fired when there is an accelerometer error (optional)
};

// Start watching for shake gestures and call "onShake"
// with a shake sensitivity of 40 (optional, default 30)
shake.startWatch(onShake, 40 /*, onError */);

// Stop watching for shake gestures
shake.stopWatch();

我也找到了另一个。cordova-plugin-gesture

   javascript:cordova.gesture.onGesture('tap', {coords: {x: 400, y: 300}}); 
    javascript:cordova.gesture.onGesture('slide', {coords: {x: 400, y: 300}});