开发者

is GA using arrays as associative?

开发者 https://www.devze.com 2023-02-24 23:52 出处:网络
_gaq.push([\'_setDomainName\', \'.mydomain.com\']); I\'m confused here, is 开发者_JS百科GA pushing two new elements onto _gaq array or is this an associative key-value pair being pushed onto _gaq?
_gaq.push(['_setDomainName', '.mydomain.com']);

I'm confused here, is 开发者_JS百科GA pushing two new elements onto _gaq array or is this an associative key-value pair being pushed onto _gaq?

I'm just trying to understand JS better


Neither :)

It's pushing a new array with two elements into _gaq

It's probably acting like a key-value pair internally to the GA code, but JS doesn't see it like that.

0

精彩评论

暂无评论...
验证码 换一张
取 消