手机游戏攻略/评测专区-1

首页 > 攻略 

最新专题

热门攻略

var uuid = Array.from(Array(24), () => Math.floor(Math.random() * 36).toString(36)).join(''); MIP.setData({data:{uuid:uuid}}); MIP.setData({data:{from_url:location.href,target_url:location.href}}); console.log(MIP.getData('data')); fetch('http://stat.eoemarket.com/stat/stat', { method: 'POST', body: JSON.stringify(MIP.getData('data')), // data can be `string` or {object}! headers: new Headers({ 'Content-Type': 'application/json' }) }) .then(function () { console.log('OK!') }) MIP.setData({data:{target_url:'javascript:void(0);'}}); MIP.watch('data.count',function () { MIP.setData({data:{from_url:location.href,event:"click"}}); fetch('http://stat.eoemarket.com/stat/stat', { method: 'POST', body: JSON.stringify(MIP.getData('data')), headers: new Headers({ 'Content-Type': 'application/json' }) }) .then(function () { console.log('OK!') }) })