Because of the CORS issue, I cannot use core-ajax
.
It was suggested to use polymer-jsonp
, which has been deprecated and core-shared-lib
is the alternative. But core-shared-lib
seems nothing like polymer-jsonp
, and the document is not helping a lot.
So how to use this element exactly?
答案 0 :(得分:0)
如果您尝试跨域请求JSON数据且该服务支持JSONP,您可以使用byutv-jsonp
。
byutv-jsonp element()公开了网络请求功能。它是一个Polymer v1.0 +元素,有助于发出JSONP请求。它使用Polymer行为(Byutv.behaviors.Jsonp)。它是在Polymer的铁 - ajax元素()之后形成图案的。它已使用单元测试进行测试。它是BYUtv Elements元素组的一部分。