简体   繁体   English

Android 2.1浏览器Javascript问题和建议

[英]Android 2.1 Browser Javascript Problems and Suggestions

I asked a question yesterday that has gone unanswered. 我问一个问题 ,昨天至今未收到答复。 So I will just ask this: 所以我只想问这个:

What advice can you give me about Android 2.1 Web Browser and Javascript? 关于Android 2.1 Web浏览器和Javascript,您能给我什么建议? How do you debug errors? 您如何调试错误? What things do you avoid doing? 您避免做什么? What things do you make sure to do? 您确定要做什么?

In a lot of ways, the Browser behaves like Mobile Safari on iOS devices. 在许多方面,浏览器的行为类似于iOS设备上的Mobile Safari。 I need help with what makes it different from iOS devices. 我需要帮助使其与iOS设备不同的地方。

The Android SDK is freely available, and includes an emulator that will allow you to run the browser that comes with the OS. Android SDK是免费提供的,并且包含一个仿真器,可让您运行操作系统随附的浏览器。 So, you can test your site directly in an emulated device, if you don't have a device available. 因此,如果没有可用的设备,则可以直接在仿真设备中测试您的站点。

There are some features for debugging via the SDK as well, see here: http://developer.android.com/guide/webapps/debugging.html 还有一些可通过SDK进行调试的功能,请参见此处: http : //developer.android.com/guide/webapps/debugging.html

Surely if it works in firefox etc and you have no errors via firebug then it should be fine. 当然,如果它可以在firefox等环境中使用,并且您没有通过firebug出错,那么应该没问题。 But you could try using firebug lite to debug any errors. 但是您可以尝试使用Firebug Lite调试任何错误。

I know it this works even in IE6 so it should work in the Android browser. 我知道即使在IE6中也可以使用,因此应该可以在Android浏览器中使用。

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

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