【问题标题】:how to add a ressource in a headTag within xpage?如何在页面内的头部标签中添加资源?
【发布时间】:2018-09-07 14:33:01
【问题描述】:

如何将“polyfill.min.js?features=Intl.~locale.fr”添加到 xp:headTag 中?

我尝试了此代码,但收到此错误Failed to load resource: the server responded with a status of 400 (Bad Request)

这是我使用的代码:

<xp:headTag tagName="script">
    <xp:this.attributes>
        <xp:parameter name="type" value="text/javascript" />
        <xp:parameter name="src" value="Dx/polyfill.min.js?features=Intl.~locale.fr" />
    </xp:this.attributes>
</xp:headTag>

【问题讨论】:

    标签: javascript devexpress xpages lotus-notes


    【解决方案1】:

    Domino 不理解第一个查询参数“features”,因此添加 Domino 理解的 open 参数,然后添加 features 参数:

    <xp:headTag tagName="script">
        <xp:this.attributes>
            <xp:parameter name="type" value="text/javascript" />
            <xp:parameter name="src" value="Dx/polyfill.min.js?open&features=Intl.~locale.fr" />
        </xp:this.attributes>
    </xp:headTag>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-11-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多