找不到jQuery的$搭载Android 3.2华硕平板 [英] can't find jQuery's $ on asus tablet with android 3.2

查看:166
本文介绍了找不到jQuery的$搭载Android 3.2华硕平板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想测试我开发了针对我们的华硕平板API 7级的应用程序。也许它不会看漂亮或什么,但我只是想看看它的样子。由于外部库,我们使用jQuery,JQ移动和PhoneGap的。

I wanted to test an app which I developed against API level 7 on our Asus tablet. Probably it won't look to nice or anything but I'd just like to see how it looks like. As external libraries we use jQuery, jQ mobile and Phonegap.

然而,应用程序将不会开始:

However the app won't even start:

ReferenceError: Can't find variable: $ at file:///android_asset/www/main.js:7

这是以下行:

$(function(event){//waiting for document

我完全被这也抨击,因为应用程序在我的机器人2.2实际工作,而不在code的任何变化。我AP preciate与此问题相关的任何信息。 :C

I'm totally blasted by this also because the app actually works on my 2.2 droid without any changes in the code. I appreciate any information related to this issue. :C

推荐答案

显然,平台不喜欢包括像

Apparently the platform does not like to include external scripts like

<script type="text/javascript" charset="utf-8" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>

我已经下载了库和改变源属性的本地副本解决了这个问题。

I had already downloaded the libraries and changing the source attribute to the local copy solved the problem.

这篇关于找不到jQuery的$搭载Android 3.2华硕平板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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