我有使用JavaScript Date对象需要增加一天的当前日期对象.
var ds = stringFormat("{day} {date} {month} {year}", {
day: companyname.i18n.translate("day", language)[date.getUTCDay()],
date: date.getUTCDate(),
month: companyname.i18n.translate("month", language)[date.getUTCMonth()],
year: date.getUTCFullYear()
});
Run Code Online (Sandbox Code Playgroud)
我怎么能加入一天呢?
我已经为getUTCDay()和getUTCDate()添加了+1,但是'Sunday'没有显示它.
在这里学习FTL.
我正在尝试在我的FTL页面上添加一个查询字符串,比如http://localhost/search,我想在URL上添加一个查询字符串,http://localhost/search?bing这样用户可以在没有查询字符串时使用默认设置进行切换.
但是,我没有从URL获取queryString的运气.我也试图避免在此使用JavaScript解决方案.
这是我的代码:
<#if RequestParameters.bing?exists >
<#assign useServer = "http://www.bing.com">
<#else>
<#assign useServer = "http://www.google.com">
</#if>
<h1>${useServer}</h1>
Run Code Online (Sandbox Code Playgroud)
打字查询字符串到URL仍返回http://www.google.com上h1.