简体   繁体   English

HTML 5和Java,Android浏览器与计算机浏览器的代码差异

[英]HTML 5 and Java, differences in code on android browsers vs. computer browsers

I would like kindly ask you, are there any differences between using Java code in internet browser on laptop and browser on android device ? 我想请问您,在笔记本电脑的互联网浏览器和android设备的浏览器中使用Java代码之间有什么区别吗? When I use application on laptop, everything is ok, but on tablet application is not working (I can't drag and drop objects). 当我在笔记本电脑上使用应用程序时,一切正常,但在平板电脑上的应用程序无法正常工作(我无法拖放对象)。 I have tryed online diagram application http://www.diagramo.com/editor/editor.php , but is it not working with tablet browser (Google Chrome, Mozilla). 我已经尝试过在线图表应用程序http://www.diagramo.com/editor/editor.php ,但是它不适用于平板电脑浏览器(谷歌浏览器,Mozilla)。 Google Chrome should support HTML 5 and Java is enabled ? Google Chrome浏览器应支持HTML 5并启用Java吗? I found this application very useful for working on computer and tablet. 我发现此应用程序对于在计算机和平板电脑上工作非常有用。 Please where can be the complication in Java - in browser or in application ? 请问Ja​​va内置浏览器或应用程序中的复杂性在哪里?

The sollution seems to be here: JavaScript mapping touch events to mouse events . 解决方案似乎在这里: JavaScript将触摸事件映射到鼠标事件 It is necessary to work with touchevents and use this part of code to set up mobile touch events. 有必要使用touchevents并使用这部分代码来设置移动触摸事件。 Then it works. 然后就可以了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM