//%s相当于?代表占位符 String baseUrl = "https://open.weixin.qq.com/connect/qrconnect" + "?appid=%s" + "&redirect_uri=%s" + "&response_type=code" + "&scope=snsapi_login" + "&state=%s" + "#wechat_redirect"; String url = String.format( baseUrl, //地址 ConstantWxUtils.WX_OPEN_APP_ID, //第一个参数%s ConstantWxUtils.WX_OPEN_REDIRECT_URL, //第二个参数%s "acloud" //第三个参数%s );
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)