我在我的 UIWebView 中嵌入了 phoneGap,参考了这个文档: http ://docs.phonegap.com/en/2.2.0/guide_cordova-webview_ios.md.html#Embedding%20Cordova%20WebView%20on%20iOS
在 index.html 中,我编写了以下示例代码:
<html>
<head>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script>
        $(document).ready(function() {
                          alert(“jquery loaded”);
                          });
    </script>
</head>
<body>
    <h2>This is a heading</h2>
    <p>This is a paragraph.</p>
    <p>This is another paragraph.</p>
    <button>Click me</button>
</body>
webview加载后,可以显示“body”,但不能弹出alert。所以 jquery.js 没有加载?还是有其他问题?
编辑:我在 src 中添加了“http:”,但不起作用。
谢谢!