我在stackoverflow上找到了一些答案,但是当我在Android 4.4.2上进行测试时。它没有用。 这就是我在下面尝试的方法
df[['value1','value2']]=df[['value1','value2']].mul(df.percentage/100,0)
我也将其添加到了config.xml
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script>
var GA_LOCAL_STORAGE_KEY = 'ga:clientId';
ga('create', 'UA-129565971-2', {
'storage': 'none',
'clientId': localStorage.getItem(GA_LOCAL_STORAGE_KEY)
});
ga(function(tracker) {
localStorage.setItem(GA_LOCAL_STORAGE_KEY, tracker.get('clientId'));
});
ga('set', 'checkProtocolTask', function(){ /* noop */});
ga('send', 'pageview');
</script>