Cordova App不使用ajax表单发送数据

时间:2016-08-26 16:29:02

标签: ios ajax cordova

过去一周,使用Cordova的混合应用程序构建已停止从表单传递数据。该应用适用于Android。该应用曾在iOS上运行。使用xCode测试没有错误,也没有服务器端错误。

在查看mySQL表中的结果时,它正在写一个完全空行。

使用ajax将表单提交到php文件。

    // submit form to server
$('#formCustdata1').on('submit', function(e) {
    e.preventDefault();
    var details = $('#formCustdata1').serialize();
    $.post('http://app.xxxxxxxxxxxxxxx.com/test1/send-data.php', details, function(data) {
        $('#phpDone').html(data);
        form.reset();
    });

0 个答案:

没有答案
相关问题