Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Download app directly from Wechat and prompt you to go to the default browser to visit the specified page in the Elephant Redirect.

Shulou Source: shulou.com Published: 2022-06-03 03:10:50 11月18日 Update

First, go to Wechat and jump to the API API platform to activate the API permission.

The code for creating a new url=xxx based on the api interface is as follows

Visit address: http://api.go51w.cn/url=http://www.baidu.com( change here to your link)

Loading $(function () {get_share ();}); function get_share () {var user = getQueryString ('user'); var url = getQueryString (' url') $.ajax ({type: "get", async: false, url: 'http://api.weixin139.com/jumpurl/index/get_url.html', data: {user:user,url:url}, dataType: "jsonp", jsonp: "callback", jsonpCallback: "checkHandler" Success: function (data) {_ window.location.href=data.url },});} function getQueryString (name) {var reg = new RegExp ("(^ | &)" + name + "= ([^ &] *) (& | $)", "I"); var r = _ window.location.search.substr (1) .match (reg); if (r! = null) return unescape (r [2]) Return null;}

Tags: Interface code address platform permissions links elephants mobile phones solutions browsers pages prompts browsing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MySQL macOS Docker vpn