gpt4 book ai didi

android - Phonegap + Jquery Mobile运行时从点击图标到主index.html

转载 作者:行者123 更新时间:2023-11-30 04:11:00 25 4
gpt4 key购买 nike

我正在使用 Phonegap + Jquery Mobile,当我点击手机上的图标时,需要很长时间才能显示 index.html,现在我添加了一个闪屏,它先显示闪屏然后黑屏它加载 index.html。 index.html 与 cordova.js 和 jquery 移动 js 非常小。我该如何纠正这个?

config.xml

<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.phonegap.test222"
version = "1.0.21">
<name>Test App</name>
<description>
Beta Saystyle
</description>
<author href="http://example.com" email="example@example.com">
Lester Jan Pearson
</author>
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator"
android:fromAlpha="0.0" android:toAlpha="1.0"
android:duration="300" />
<icon src="images/4.png" />
<gap:splash src="images/mohawk.png" />
</widget>

最佳答案

如果您使用的是 Phonegap 1.7 或更高版本,请查看我对初始屏幕所做的更改。

http://simonmacdonald.blogspot.com/2012/04/phonegap-android-splashscreen-just-got.html

现在您的页面在显示初始屏幕时在后台加载。您也可以在设备就绪后调用隐藏启动画面的方法,这样它就不会再显示了。

关于android - Phonegap + Jquery Mobile运行时从点击图标到主index.html,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10868289/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com