6

在使用jCart 时,我注意到它在 iPhone 上不起作用。经过一些测试(并在jcart 论坛上与开发人员交谈)后,单击提交按钮时似乎无法调用提交处理程序:

$('form.jcart').submit(function(){...});

我尝试将其更改为:

$("form.jcart input[type='submit']").click(function(){...});
// There were some other code changes needed to make this change work,
// but they are omitted for brevity (they don't impact the problem).

这也行不通。我发现了其他关于 iPhone 上的 .submit/onsubmit 有问题的报告,但似乎没有人找到解决方法?

4

1 回答 1

3

乔纳森:我解决了我们遇到的问题。事实证明,一些补充代码是问题的根源,通过删除它,iPhone、iPod Touch 上一切正常。

我已经在 jCart 论坛上描述了解决方案: http ://conceptlogic.com/jcart/help/viewtopic.php?f=3&t=316&start=10

于 2010-01-09T07:46:29.057 回答