README
nw-share
打点组件
安装
$ yarn add nw-log
example
import Log, {ENV} from 'nw-log';
const log = new Log({
env: ENV.GA,
key: 'comic',
userId: '23223'
});
log.capture('hds-2:nwe,sdf,s');
API
{{>main}}
打点组件
<script type="module">
import nwLog from 'https://cdn.skypack.dev/nw-log';
</script>
打点组件
$ yarn add nw-log
import Log, {ENV} from 'nw-log';
const log = new Log({
env: ENV.GA,
key: 'comic',
userId: '23223'
});
log.capture('hds-2:nwe,sdf,s');
{{>main}}