2011-06-05 65 views
0

我有一个php文件,process.php返回一个数字模式,取决于输入字符串,从$_POST["name"]。我想用jQuery提醒返回号码。我怎样才能做到这一点??提醒返回数据jQuery - ajax

在此先感谢..

blasteralfred

回答

0

如何

$.post('/process.php', { input: 'your input' }, function(data) { 
    alert(data); 
}, 'text'); 
+0

其使用POST方法...不工作.. u能发布完整的代码? – 2011-06-05 11:44:28

+0

您可以使用$ .get()或$ .post()process.php接受的东西 – 2011-06-05 12:01:36