【发布时间】:2019-10-17 19:58:11
【问题描述】:
我使用 phonegap 框架创建了一个移动应用程序,它在 ios 和 android 上运行良好,但问题是 ajax jquery 代码在 android 上不起作用
感谢您帮助我找到解决方案
ajax jquery 代码
$ (document) .ready (function () {
$ .Ajax ({
url: "http://rest-service.guides.spring.io/greeting"
}). then (function (data) {
. $ ( '. Greeting-id') append (data.id);
. $ ( '. Greeting-content') append (data.content);
});
【问题讨论】:
-
您能解释一下这在 Android 中是如何失败的吗?就 Javascript 语言语法而言,似乎不是合法代码。
标签: android jquery ios ajax phonegap