标签: javascript arrays object
我已将数组声明为
dataLayer[{}];
在onclick我写了一个函数
onclick
onclick="dataLayer.push({'event':'xing'})";
如果onclick发生,我如何获得事件的价值?