jQuery.sap.includeScript().then() not working in SCP SAPUI5 app

后端 未结 2 1725
孤城傲影
孤城傲影 2020-12-22 02:14

I\'m trying to include googlemaps in sapui5

jQuery.sap.includeScript({
                url: \"https://maps.googleapis.com/maps/api/js?key=XXXX\",
                   


        
2条回答
  •  情话喂你
    2020-12-22 02:37

    Looks like the InterceptService doesn't support the newest signature of jQuery.sap.includeScript (where parameters are provided in a configuration object instead of as individual arguments) yet.

    Midterm, the InterceptService needs to be enhanced / fixed. Short-term, you might fall back to the old signature jQuery.sap.includeScript(url, id, onload, onerror). There is unfortunately no way to get a Promise with the old signature.

提交回复
热议问题