如何在页面内的head标签中添加资源?

问题描述 投票:1回答:1

如何将“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个回答
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>
© www.soinside.com 2019 - 2024. All rights reserved.