@miapp/navigate2

1.0.10 • Public • Published

小程序API ~ my.navigateTo 适配器

NPM包

@miapp/navigate2

主要功能

适配手淘、支付宝小程序的跳转功能,包括小程序内跳转、小程序间跳转、小程序外跳转。

使用

  1. 安装 yarn

    tnpm install yarn -g
    
  2. 添加依赖

    yarn add @miapp/navigate2
    
  3. 应用

    import '@miapp/navigate2';
    //应用内
    my.navigateTo({
        url:'/pages/back/index',
        success(){},
        fail(){}, 
        complete(){}
    });
    
    //应用外
    my.navigateTo({
       url:'url',
       success(){},
       fail(){}, 
       complete(){}
    });

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.100latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.100
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.30
1.0.10
1.0.00

Package Sidebar

Install

npm i @miapp/navigate2

Weekly Downloads

0

Version

1.0.10

License

MIT

Unpacked Size

6.78 kB

Total Files

4

Last publish

Collaborators

  • shaoyouqing
  • jackieyoho
  • lamo
  • kingback
  • kehanshi
  • f-loat
  • azure_jyx