url = "/plus/API/";
try {
// 此处是可能产生例外的语句
} catch(error) {
// 此处是负责例外处理的语句
} finally {
// 此处是出口语句
}
postData = {k:2}; $.post(url, postData, function(result) { console.log(result);
try {
var str = JSON.parse(result);
} catch(error) {
}
);
}
});
url = "/plus/API/";
try {
// 此处是可能产生例外的语句
} catch(error) {
// 此处是负责例外处理的语句
} finally {
// 此处是出口语句
}
postData = {k:2}; $.post(url, postData, function(result) { console.log(result);
try {
var str = JSON.parse(result);
} catch(error) {
}
);
}
});
相关文章: