0
我有這樣的代碼在我的index.php:傳遞崗位價值與阿賈克斯
$('#whois').click(function() {
//console.log("button clicked");
$('#whois_content').html("");
$('#fade').fadeOut('slow', function() {
urlLinkas();
});
});
我想傳遞一個崗位價值,以這個劇本里面test.php的,就像這樣:
$('#whois').click(function() {
//console.log("button clicked");
$.ajax({
type: "POST",
url: "test.php",
data: info,
success: function(){
//dont know what to write here
}
$('#whois_content').html("");
$('#fade').fadeOut('slow', function() {
urlLinkas();
});
});
然後在test.php中調用這個帖子值$_POST['info']
也許有人會明白我在說什麼。
的信息變量沒有定義是什麼? – 2013-04-18 05:41:19
也許你會提出一個問題? P.S .:嘗試'var_dump($ _ POST);'。 – BlitZ 2013-04-18 05:41:29
定義'數據類型'並嘗試 – dreamweiver 2013-04-18 05:42:31