在uiwebview ios中获取本地javascript [英] sourcing local javascript in uiwebview ios

查看:82
本文介绍了在uiwebview ios中获取本地javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

------------------ NOTICE ----------------
对不起,伙计们犯了一个愚蠢的错误,我已经找到了这个修补程序:
https://devforums.apple.com/message/32282

------------------NOTICE---------------- Sorry guys, made a stupid mistake, I had found this fix already: https://devforums.apple.com/message/32282

我正在编写一个应用程序ios在uiwebview(书籍应用程序)中的html中使用jquery和touchwipe来使用滑动来向后/向后移动页面。

I'm programming an app for ios in html in a uiwebview (a book app) and using jquery and touchwipe to use swipes to move back/forwards through pages.

我的代码在我输入javascript时有效像这样在html中:

My code works when I source the javascript like this in the html:

<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="http://www.netcu.de/templates/netcu/js/jquery.touchwipe.min.js"></script>

但是当我尝试在本地存储js时不起作用,如下所示:

but doesn't work when I try to store the js locally, like this:

<script type="text/javascript" src="jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="jquery.touchwipe.min.js"></script>

.js文件当然是在xcode项目中,旁边是html文件(我想这是没关系,因为当它建成时一切都变平了)

The .js files are of course in the xcode project, next to the html files (which I suppose doesn't matter as everything is flattened when it's built)

有人能指出我正确的方向吗?我在Mac OS 10.6.8上使用Xcode 4.2

Can anyone point me in the right direction? I'm using Xcode 4.2 on Mac OS 10.6.8

推荐答案

在问题的顶部完全回答

这篇关于在uiwebview ios中获取本地javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆