関数の比較
by s_hiroshi
HTML
<div class="result"></div>
JavaScript
a = function(x, y) {
return x + y
};
b = a;
c = function(x, y) {
return x + y;
};
if (a == b) {
$(".result").text("true");
} else {
$(".result").text("false");
}
by s_hiroshi
<div class="result"></div>
a = function(x, y) {
return x + y
};
b = a;
c = function(x, y) {
return x + y;
};
if (a == b) {
$(".result").text("true");
} else {
$(".result").text("false");
}