Vue

by pm123

JavaScript

$.ajax("/echo/html/")

  .done(function(){ alert("哈哈,成功了!"); })

  .fail(function(){ alert("出错啦!"); });