天使漫步IT工作室天使漫步IT工作室

支付宝h5页面禁止分享功能代码示例


Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/u11u.com/usr/themes/wq/functions.php on line 110

Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/u11u.com/usr/themes/wq/functions.php on line 116

做停车场的无感支付页面,在1.0版本的时候需要对支付结果页面进行禁止。

代码如下:

<script src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js"></script>
<script>
    document.addEventListener('AlipayJSBridgeReady',function(){
        console.log(typeof AlipayJSBridge);
        AlipayJSBridge.call("hideToolbar");
        AlipayJSBridge.call("hideOptionMenu");
    }, false);
</script>

特此记录。

支付宝的jsapi很强大,更多功能可以预览:阿里巴巴h5-jsapi

本站原创,欢迎转载,转载敬请标明出处:天使漫步IT工作室 » 支付宝h5页面禁止分享功能代码示例
添加新评论


Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /www/wwwroot/u11u.com/usr/themes/wq/comments.php on line 38