gpt4 book ai didi

servicenow - 美元符号后跟小部件 html 内的大括号

转载 作者:行者123 更新时间:2023-12-01 12:25:45 26 4
gpt4 key购买 nike

我目前在赫尔辛基发布

无法理解标签标签内的美元符号和花括号的用途

 <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>

最佳答案

From ServiceNow Product Dokumentation

使用 HTML 模板将小部件中的字符串国际化。

将文本写成 ${message} 等同于在系统的其他部分写 ${gs.getMessage("message")} ,但写成更易读的速记。

关于servicenow - 美元符号后跟小部件 html 内的大括号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40016939/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com