'); um.init({ timeout: 3000, timestamp: new Date().getTime(), token: umidToken, serviceUrl: '//ynuf.alipay.com/service/um.json', appName: 'act-aliyun-com', containers: { flash: container[0], dcp: container[0] } }); if (!window.getUmidToken) { window.getUmidToken = function() { return umidToken; }; } }; var initUA = function() { // var ua = null; if (!window.getUA) { window.getUA = function() { var tmp_ua = window[UA_Opt.LogVal]; window.UA_Opt.Token = new Date().getTime() + ":" + Math.random(); window.UA_Opt.reload && window.UA_Opt.reload(); return tmp_ua; }; } }; jQuery.ajax({ url: '//promotion.aliyun.com/risk/getToken.htm', method: 'get', jsonp: 'cback', dataType: 'jsonp', success: function(data) { if (data.code == 200) { window.umidToken = data.data; initUmid(data.data); initUA(); } } }); })();