我想将myId
作为id的值提交到example.php
页面,如果页面example.php
返回变量$=success
,则会显示警告该
function(isConfirm){
myId="4";
$.get("example.php",{id: myId});
}
答案 0 :(得分:1)
function(isConfirm){
myId="4";
$.get("example.php",{id: myId}).done(function(data){
if( data == 'success' ) { alert( 'Success!' ); }
});
}