开发者

Trying to use jQuery on my Nokia gives me this error: TypeError: "Object $ (result of expression $) does not allow calls."

开发者 https://www.devze.com 2023-01-11 00:48 出处:网络
flickr Here\'s a simplified demo: http://jsbin.com/emugo3 <script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js\"></script>

Trying to use jQuery on my Nokia gives me this error: TypeError: "Object $ (result of expression $) does not allow calls."

flickr

Here's a simplified demo: http://jsbin.com/emugo3

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
try {
  $(function () {
    $.noop();
    $("#hello").text("it works");
  });
} catch (e) {
  alert(e.message);
}
</script>

The user agent for my phone开发者_开发问答's browser is:

NokiaE71x/ATT.03.28 Mozilla/5.0 SymbianOS/9.3; U; [en]; Series60/3.2; Profile/MIDP-2.1 Configuration/CLDC-1.1 AppleWebKit/413 (KHTML, like Gecko) Safari/413

I've tried googling this error and I've seen people with really old versions of Safari having the same issue, but I haven't seen a solution yet. Does anyone know anything I can try?


The solution that worked for me is to use version 1.2.6 of jQuery: http://jsbin.com/emugo3/14

That was the latest version that still works with my phone.

0

精彩评论

暂无评论...
验证码 换一张
取 消