作者:雨天是最美 | 来源:互联网 | 2023-05-17 11:57
howcanIincludeGooglelibraryima3.jstomymoduleusingrequire.js?我如何包括谷歌图书馆ima3。用request。js到我
how can I include Google library ima3.js to my module using require.js
?
我如何包括谷歌图书馆ima3。用request。js到我的模块?
I'm trying like this, but unsuccesfully:
我试着这样做,但没有成功:
define(['uiBase', 'base', 'const', 'https://s0.2mdn.net/instream/html5/ima3.js'], function (UIBase, Base, Const, AdSDK) {
function Ad (params) {
var params = params || {};
/*-- Section to build ui elements --*/
var adsLoader = new AdSDK.google.ima.AdsLoader(adDisplayContainer);
/*-- End of section --*/
};
return Ad;
});
1 个解决方案