Download app directly from Wechat and prompt you to go to the default browser to visit the specified page in the Elephant Redirect.
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;}