как я могу добавить 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>
Domino не распознает первый параметр запроса "features", поэтому добавьте параметр open
, который понимает Domino, а затем параметр 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>