开发者

Problem with JavaScript for different Android devices

I am facing lot problems in my webview based application on Android. Different Android devices (HTC Legend and Samsung Galaxy Tab) react differently to my JavaScript code. As an example, If I pass a String from Java code to JavaScript and I treat it as an Array in JavaScript (using split method) then it is treated as cha开发者_开发知识库racter Array for HTC Legend and Android Emulator. But reacts differently for Galaxy Tab. Please note that I have updated HTC Legend to Android 2.2, the OS which we have on Galaxy tab. So both are having same Android OS.

I want to know if anybody else is also facing problems with different JavaScript support for different Android devices? Any information regarding this will be of great help to me. Thank you


Have you considered using a library like jQuery Mobile or Sencha Touch to deal with the inconsistencies between platforms for you?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜