【发布时间】:2016-07-18 12:06:48
【问题描述】:
我正在为 Ex 设置硬编码消息:“您确定,要删除该消息吗?” ,在 message.properties 文件中。
想要将此消息从 message.properties 转换为 javascript。 请建议我实现这一目标的方法。
例如:
BootstrapDialog.show({
message: 'Are you sure you want to '+activeStatus+' this message ?',
title: 'Alert'
});
function handleAjaxError(xhr, textStatus, error) {
if (textStatus == 'timeout') {
alert('The server took too long to send the data.');
} else if (textStatus == "parsererror") {
alert("Ajax error occured.");
}
}
【问题讨论】:
标签: javascript java html spring-mvc