Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created Dec 8, 2016
Embed
What would you like to do?
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