在我们的应用程序中,我们在集群环境中使用iframe。 iframe可以在单个节点上加载并正常工作,但是在使用以下代码行加载时,相同的代码已低于异常。
We are using below line to load iframe:
document.getElementById("id").src = "/iframe/url"
The js exception in cluster environment is:
VM48:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at Function.n.parseJSON (jquery-1.12.4.min.js?v=3.12.0.27:4)
at setupValidationsForElement (merchant-html.js?v=3.12.0.27:417)
at SetupValidation (merchant-html.js?v=3.12.0.27:382)
at HTMLDocument.<anonymous> (merchant-html.js?v=3.12.0.27:47)
at i (jquery-1.12.4.min.js?v=3.12.0.27:2)
at Object.fireWith [as resolveWith] (jquery-1.12.4.min.js?v=3.12.0.27:2)
at Function.ready (jquery-1.12.4.min.js?v=3.12.0.27:2)
at HTMLDocument.K (jquery-1.12.4.min.js?v=3.12.0.27:2)