如何将 Google 库ima3.js 包含到我的模块中require.js
?
我正在尝试这样,但没有成功:
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;
});