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.
我有以下 perl mason 代码:
% my $var = "San Diego"; <input type="text" value=<% $var %> disabled />
但是,当我这样做时,文本字段的值只会设置为第一个单词。所以在这种情况下,它被设置为“San”。我怎样才能解决这个问题?
尝试将值括在双引号之间
<input type="text" value="<% $concertCity %>" disabled />