~~请教个问题 谢谢! 这段安卓原生代码用js怎么实现
Intent action = new Intent(Intent.ACTION_VIEW);
StringBuilder builder = new StringBuilder();
builder.append("alipays://platformapi/startapp?appId=20000067&url=");
builder.append(URLEncoder.encode(url));
action.setData(Uri.parse(builder.toString()));
startActivity(action);
就是启动支付宝客户端然后给action传参数,怎么实现?
2***@qq.com (作者)
谢谢~~可以打开支付宝了!但不能设置的URL呢~怎么回事呢
2017-08-02 16:10