gistfile1.txt //给app传广告id if (data.userAgent.indexOf('native_Android') 0) { window.ShareClick.adNew(data.adBoard.adId, data.adBoard.id); } else if(data.userAgent.indexOf('native_iOS') -1) { window.webkit.messageHandlers.adNew.postMe
//给app传广告id if (data.userAgent.indexOf('native_Android') > 0) { window.ShareClick.adNew(data.adBoard.adId, data.adBoard.id); } else if(data.userAgent.indexOf('native_iOS') > -1) { window.webkit.messageHandlers.adNew.postMessage({ adId: data.adBoard.adId, bdId: data.adBoard.id }); }