例外処理。
try {
var today = Date();
today.set_month(3); // no such method.
} catch (e) {
document.write(e); // => [object Error]
}
例外を発生させるには throw かな。
takatoh's blog – Learning programming languages.
例外処理。
try {
var today = Date();
today.set_month(3); // no such method.
} catch (e) {
document.write(e); // => [object Error]
}
例外を発生させるには throw かな。