Skip to content

Instantly share code, notes, and snippets.

@tarunama tarunama/file0.js
Last active Aug 29, 2015

What would you like to do?
[JavaScript] jQueryのメソッドにCallback関数を適応させる時のメモ ref:
// main
$("#hoge").click(function () {
console.log("function main start");
// 適当なメソッド
console.log("method animate start");
var value;
right: 100
}, 1000 ,callback(value)
console.log("method animate end");
console.log("function main end");
// callback関数
var callback = (function(value) {
console.log("function callback start");
if (value !== "undefined") {
console.log("condition true");
console.log("function callback end");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.