Giter VIP home page Giter VIP logo

xrouter's Introduction

XRouter

Introduce

XRouter是一个可以跳转并加载H5的JS插件。当你的H5中集成了XRouter插件后,在微信等场景下的分享连接打开H5后可以自动跳转到一个特定的应用去加载H5,在这个应用中。你的H5可以跳转到系统浏览器、应用商店,或者其他任何第三方APP。当然,还支持获取手机设备信息、获取定位信息、设置剪切板等丰富的JS API。

USAGE

下载JS文件到本地,然后在H5中引入该JS文件后即可使用相关接口。

主要接口有:

  • jumpByDeeplink
  • jumpToSystemBrowser
  • jumpToAppMarket
  • setClipborad
  • getDeviceInfo

后续会支持更多的API。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.