-1

ある種の文字列文字列を返す関数が1つあります文字列は静的ではなく動的です

<code of script function>
var error_msg = sendPinAjaxResponse("some url");

そして、言語を変更するために春のメッセージタグを使用しています

 $("#error_div").html('<spring:message javaScriptEscape="true" code="static string" />')

静的文字列を渡すと正常に動作します

しかし、varの動的な値を保存したいので、var 'error_msg'を使用しています

 $("#error_div").html('<spring:message javaScriptEscape="true" code= error_msg />')

jspページで例外を与える

 quote symbol expected
4

1 に答える 1