aaomega
v1.0.2
Published
3. Example app.mpx ```html <script> // 在app中不管使不使用,都必须要在app.mpx中先引入Omega import Omega from 'omega'; // app.js App({ onLaunch: function () { Omega.setConfig({ appId: 'wx7292c1899397867c',
Downloads
5
Readme
- Example
app.mpx
page.mpx<script> // 在app中不管使不使用,都必须要在app.mpx中先引入Omega import Omega from 'omega'; // app.js App({ onLaunch: function () { Omega.setConfig({ appId: 'wx7292c1899397867c', uniqueId: 'XXXXXXXXXXXXXXXX' }); // Your code ... } }); </script>
<script> import Omega from 'omega'; Page({ onLoad: function () { Omega.trackEvent('eventid', 'eventlabel', { /* attrs... */ }); // Your code ... } }) </script>