我目前正在赫尔辛基发布
无法理解标签标签
中美元符号和花括号的用途 <label class="control-label" for="inputSuccess">${Location}</label>
天气小工具的完整HTML:
<form class="form-inline well">
<div class="form-group" ng-class="{'has-error': (c.errorMessage), 'has-success': (c.channel)}">
<label class="control-label" for="inputSuccess">${Location}</label>
<input type="text" class="form-control" id="weatherInput" placeholder="{{::data.enterLocMsg}}" ng-model="c.data.place">
<button type="submit" class="btn btn-default" ng-click="c.getWeather();">${Go}</button>
<span class="help-block" ng-bind="c.errorMessage" ng-if="c.errorMessage"></span>
</div>
</form>
<div class="panel panel-default" ng-if="c.channel">
<div class="panel-body">
<p>${Location}: {{c.channel.location.city}}, {{c.channel.location.region}} {{c.location.country}}</p>
<p>${Temperature}: {{c.channel.item.condition.temp}}</p>
<p>${Condition}: {{c.channel.item.condition.text}}</p>
<p>{{c.channel.item.condition.date}}</p>
</div>
</div>
答案 0 :(得分:4)
From ServiceNow Product Dokumentation
使用HTML模板将小部件中的字符串国际化。
将文本写为$ {message}相当于在系统的其他部分编写$ {gs.getMessage(“message”)},但写作更易读的简写。