我用下面的使用来获取一些HTML Jquery的:与阿贾克斯jQuery的
的index.php
$.post(
'get-products.php',
$("#offerForm").serialize() + '&lastid=' + highest,
function(data) {
$('#demo').html(data);
}
是否有可能也获取的值从GET-products.php变量,例如:
GET-products.php
<? echo $htmlOutput;
echo $variable; ?>
的index.php
$.post(
'get-products.php',
$("#offerForm").serialize() + '&lastid=' + highest,
function(data) {
$('#demo').html(data);
//variable processing statement goes here
}
参数数据类型是没有必要的BTW,但它是安全的。 – giorgio 2012-02-08 13:17:52