Javascript错误:应为';)';
获取此错误: 在这一行:Javascript错误:应为';)';,javascript,Javascript,获取此错误: 在这一行:totalFundedLabel.push(“label”:“Funded”) JS: 这是一个语法错误,因为它是。您可能想要: unFundedLabel.push({ label: "unFunded"}); 花括号创建一个对象,其属性名为“label”。如果属性名称看起来像标识符(通常),则不需要在属性名称上加引号。看起来所有的.push()调用都是以同样的方式中断的。所有push语句中都缺少大括号{&} if (totalFunded != null) {
totalFundedLabel.push(“label”:“Funded”)代码>
JS:
这是一个语法错误,因为它是。您可能想要:
unFundedLabel.push({ label: "unFunded"});
花括号创建一个对象,其属性名为“label”。如果属性名称看起来像标识符(通常),则不需要在属性名称上加引号。看起来所有的.push()
调用都是以同样的方式中断的。所有push语句中都缺少大括号{
&}
if (totalFunded != null)
{
totalFundedLabel.push( {"label": "Funded"});
totalFundedValue.push( {"value": <tld-msst:fc-value var="${totalFunded}"/>});
totalFundedText.push( {"toolText": "<fmt:formatNumber value='${totalFunded}' type='currency' groupingUsed='true' />"});
}
if (totalUnfunded != null)
{
unFundedLabel.push( {"label": "unFunded"});
unFundedValue.push( {"value": <tld-msst:fc-value var="${totalUnfunded}"/>});
unFundedText.push( {"toolText": "<fmt:formatNumber value='${totalUnfunded}' type='currency' groupingUsed='true' />"});
}
if(totalFunded!=null)
{
totalFundedLabel.push({“label”:“Funded”});
totalFundedValue.push({“value”:});
totalFundedText.push({“toolText”:“});
}
如果(totalUnfunded!=null)
{
unFundedLabel.push({“label”:“unFunded”});
unfunddvalue.push({“value”:});
UNFUNDETEXT.push({“工具文本”:“});
}
unFundedLabel.push({ label: "unFunded"});
if (totalFunded != null)
{
totalFundedLabel.push( {"label": "Funded"});
totalFundedValue.push( {"value": <tld-msst:fc-value var="${totalFunded}"/>});
totalFundedText.push( {"toolText": "<fmt:formatNumber value='${totalFunded}' type='currency' groupingUsed='true' />"});
}
if (totalUnfunded != null)
{
unFundedLabel.push( {"label": "unFunded"});
unFundedValue.push( {"value": <tld-msst:fc-value var="${totalUnfunded}"/>});
unFundedText.push( {"toolText": "<fmt:formatNumber value='${totalUnfunded}' type='currency' groupingUsed='true' />"});
}