Skip to content

Instantly share code, notes, and snippets.

@goofmint

goofmint/index.js

Created May 7, 2017
Embed
What would you like to do?
3.md
function main(results) {
if (!results)
let p = ajax();
if (typeof p == 'object' && typeof p.then == 'function') {
p.then(function(results) {
main(results);
return;
})
}
// Ajaxの処理成功時
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment