我可以在带有phonegap的移动设备上使用html5的拖放吗?

Fra*_*sco 5 javascript html5 drag-and-drop cordova

我需要使用phonegap拖放到移动设备.我尝试使用jquery mobile和jquery ui + jquery touch punch,但html5对我来说更好.可能吗?

谢谢,弗朗西斯科

//编辑

这是一个可拖动的图像:

<a href="" name="cebra" draggable="true" ondragstart="dragUser(this, event)" > 
<img src="Imagenes/cebra.png" alt="cebra" width="150" height="100" id=""      style="background-color: #FFFFFF; display: block;" ; /> 
</a> 
Run Code Online (Sandbox Code Playgroud)

和javascript的功能

function dragUser(user, event) { 
     event.dataTransfer.setData('User', user.id); 
 } 
Run Code Online (Sandbox Code Playgroud)

我需要知道我是否可以使用属性draggable ="True"和phonegap为android创建一个可拖动的图像.我可以使用jquery ui + jquery ui touch punch来制作这个,但对于我的应用程序可能会更好用html5.

Ton*_*ose 4

嗨,Fransisco,可以使用 jQuery UI 添加拖放功能,我们已经在 Web、Android 和 iOS 应用程序中实现了此功能(也使用 PhoneGap)。因此,请继续执行此操作,请参阅以下链接,