0

我通过单击页面上的按钮显示了确认窗口。对于俄语语言环境,它可以完美运行,但是当我将其切换为英语时,它什么也没显示。这是按钮的代码:

<form method="POST" 
action="Link.do?method=newsList"
onsubmit="return confirm('<fmt:message key="body.onsubmit.cancel" />')">
<input type="submit" 
    value="CANCEL">
</form>

还想说该body.onsubmit.cancel属性存在于所有属性文件中,我可以成功连接到它。真不知道怎么了。将不胜感激您的帮助。

4

1 回答 1

1

the way to debug this is to see the source of the page that was sent to the client when you switch to the locale that does not work and see if the code is correct. for example if your message contains quotes then the syntax will be invalid in the resulting script if the quotes are not escaped.

于 2012-05-14T15:54:56.083 回答