jQuery ajax() et get()/post()

Disons que je veux exécuter un script PHP. Ce qui est mieux?

Ce:

$.ajax({
    type: "GET",
    url: "php-script.php",
    dataType: "script"
});

Ou ceci:

$.get("php-script.php", function(data) { });
  • Quels sont les effets du script?
InformationsquelleAutor Richard Knop | 2009-08-27