+1
點贊
a2 });
}
//獲取url參數(shù)
function urlQuery(name = '', val = '', str = '', splitStr = '') {
const r = new RegExp(`(^|&)${name}=([^&]*)(&|$)`, 'i');
const { search, hash } = document.location;
const s = (str || search || hash).split(splitStr || '?')[1];
const v = (s && s.match(r) && s.match(r)[2]) || val;
const d = /(%[0-9A-Z]{2})+/g;
try {
return v.replace(d, decodeURIComponent);
} catch (err) {
try {
return decodeURIComponent(v);
} catch (e) {
return decodeURIComponent(escape(v));
}
}
}
// 發(fā)送pv數(shù)據(jù)
function getEventTrackObjNew(uid, authorid, objectId, sourceId, coopId, coopIf) {
if (!objectId) {
objectId = -1;
}
var eventObj = {
author_id: authorid,
user_id: uid,
objectid: objectId,
seriesid: -1,
sourceid: sourceId,
coop_id: coopId,
pvid: -1,
coop_if: ((coopIf && coopIf > 0) ? coopIf : (coopId > 0 ? 2 : 1)),//1無共創(chuàng)功能,2有共創(chuàng)功能
author_type: ((coopIf && coopIf > 0) ? coopIf : (coopId > 0 ? 2 : 1)) //1關(guān)注的是創(chuàng)作者、2關(guān)注的是其它共創(chuàng)者
};
return eventObj;
}
哈巴河县|
洪泽县|
连云港市|
中牟县|
仁化县|
沙田区|
大连市|
万载县|
寿宁县|
高唐县|
河池市|
同德县|
深水埗区|
富宁县|
师宗县|
资源县|
来安县|
肃宁县|
武功县|
南阳市|
富阳市|
彩票|
南部县|
武平县|
广河县|
齐河县|
丁青县|
登封市|
治多县|
阿拉善盟|
蒙自县|
阿拉尔市|
兰溪市|
赤壁市|
礼泉县|
梓潼县|
新宁县|
德江县|
仁布县|
工布江达县|
绵竹市|