gpt4 book ai didi

javascript - 未捕获的语法错误 : Unexpected end of input inside a wcm component

转载 作者:行者123 更新时间:2023-11-28 07:57:54 27 4
gpt4 key购买 nike

有人知道为什么我会收到这个奇怪的错误吗?我没有发现代码有任何问题。
它在 Websphere Portal WCM 组件 内运行,但这对其执行没有影响。

alert() 正确触发。

<script>
var AJAX_Utils = {

updateWishlist: function(param){
alert('updatewishlist');
var http = new XMLHttpRequest();
var url = '/proxy/https/[Element context="current" type="content" key="sourceUrl"]/store/[Element context="current" type="content" key="storeID"]/wishlist';

// Error shows up here in Chrome console

http.open("GET", url, true);
}
};
</script>

最佳答案

事实证明,这是 Google Chrome 版本 36.0.1985.143 的问题

使用 Firefox 32 我被指出了有问题的正确行。

关于javascript - 未捕获的语法错误 : Unexpected end of input inside a wcm component,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25839189/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com