讨论社区

发帖

集成的时候报错

function setUPGIO (onComplete) {

window._gr_ignore_local_rule = true;

window.gio = window.gio || function () { window.gio.q = (window.gio.q || []).push(arguments); };

let n = 'script';

n = document.createElement('script');

let tag = {};

tag = document.getElementsByTagName('script')[0];

n.async = 1;

n.src = (document.location.protocol === 'https:' ? 'https://' : 'http://') + 'assets.giocdn.com/2.1/gio.js';

tag.parentNode.insertBefore(n, tag);

window.gio('init', 'your projectId', {});

window.gio('send');

onComplete();

}




------------------------------------------------------------------------------------------------------------------------------------------------------------

Uncaught TypeError: (window.gio.q || []).push is not a function

    at window.gio (pa.js:5758:43)

    at setUPGIO (pa.js:5769:12)

    at doSetup (pa.js:5514:7)

    at pa.js:5938:9

    at Array.forEach (<anonymous>)

    at loadVendorJs (pa.js:5932:13)

    at latmConfigInit (pa.js:5872:9)

    at callSubscriberWithDelayedExceptions (pa.js:1209:7)

    at deliverMessage (pa.js:1229:9)

    at deliverNamespaced (pa.js:1239:7)




0 人关注了该问题 关注

您需要登录后才可以回复