Joh*_*ohn 9 javascript jquery local uiwebview ios
------------------通知----------------对不起家伙,犯了一个愚蠢的错误,我已经找到了这个修复: https://devforums.apple.com/message/32282
我正在使用uiwebview(书籍应用程序)在html中为ios编写应用程序,并使用jquery和touchwipe来使用滑动来向前/向后移动页面.
当我在html中输出这样的javascript时,我的代码有效:
<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>
Run Code Online (Sandbox Code Playgroud)
但是当我尝试在本地存储js时不起作用,如下所示:
<script type="text/javascript" src="jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="jquery.touchwipe.min.js"></script>
Run Code Online (Sandbox Code Playgroud)
.js文件当然是在xcode项目中,在html文件旁边(我认为这并不重要,因为在构建时所有内容都被展平)
谁能指出我正确的方向?我在Mac OS 10.6.8上使用Xcode 4.2
| 归档时间: |
|
| 查看次数: |
7344 次 |
| 最近记录: |