@monitor-sdk/router-hash
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

@monitor-sdk/hash

捕获路由中的hash更改

Usage

cdn

<script src="[hash-dist]/router_hash.iife.js"></script>
<script>
    window.__MONITOR_OPTIONS__ = {
        dsn: {
            projectID: 'dsdsdsdsdd5d5s5ds5ds5',
            reportUrl: 'localhost:8888/log/upload'
        },
        plugins: [
            HEIMDALLR_HASH(),
        ]
    };
</script>
<script async src="/browser-dist/browser.iife.js"></script>

npm

import monitor from "@monitor-sdk/browser";
import hashPlugin from "@monitor-sdk/router-hash";
monitor({
    dsn: {
        projectID: 'dsdsdsdsdd5d5s5ds5ds5',
        reportUrl: 'localhost:8888/log/upload'
    },
    plugins: [
        hashPlugin(),
    ]
});

Readme

Keywords

none

Package Sidebar

Install

npm i @monitor-sdk/router-hash

Weekly Downloads

13

Version

1.1.7

License

ISC

Unpacked Size

162 kB

Total Files

6

Last publish

Collaborators

  • miaodashu