Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created December 8, 2016 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/6e1f8083bb442612c014b62f8e0f6dda to your computer and use it in GitHub Desktop.
Save goofmint/6e1f8083bb442612c014b62f8e0f6dda to your computer and use it in GitHub Desktop.
2.md
// ダミー実行
$.ajax = function(data) {
var name = $("#name").val();
var deffered = h5.async.deferred();
var p = deffered.promise();
p.dataTypes = ["text", "json"];
setTimeout(function() {
deffered.resolve({
message: name+"さん、こんにちは"
});
}, 1000);
return p;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment