Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコードの $ 記号の意味は何ですか:
<h1 class="title">Welcome ${consumer.first_name} </h1>
これは式です (Java オブジェクトの値にアクセスする手段と考えてください)。
${consumer.first_name}
と同等です
<% out.print(consumer.getFirst_Name()); %>
ここでconsumerは、スコープ (リクエスト、セッションなど) の 1 つの属性になります。
consumer
式言語について読む
これは変数にアクセスする方法の 1 つです。このリンクを見てください。