1
有人能告訴我如何使用jsfiddle來演示使用php的Ajax嗎? 正如在這個如何使用JsFiddle來演示使用PHP的Ajax?
$.ajax({
url:'myAjax.php',
success: function (response) {
console.log(data, response);
$('#output').html(response);
},
error: function() {
$('#output').html('Bummer: there was an error!');
},
});
http://jsfiddle.net/amrata/j42t5y30/文件做了什麼? 如何傳遞外部的php文件?路徑?