genshenwang / inspire-demo Goto Github PK
View Code? Open in Web Editor NEW日常代码练习demo
License: Apache License 2.0
日常代码练习demo
License: Apache License 2.0
Ch3_InterfaceAuth代码仓库中、ApiRequest类中方法代码有问题建议使用如下代码:
public static String concatUrl(String url, Map<String, String> params){ if(StringUtils.isEmpty(url)){ return ""; }else if(params == null || params.isEmpty() ){ return url.trim(); }else{ StringBuffer sb = new StringBuffer(""); Set<String> keys = params.keySet(); for (String key : keys) { sb.append(key).append("=").append(params.get(key)).append("&"); } sb.deleteCharAt(sb.length() - 1); url = url.trim(); int length = url.length(); int index = url.indexOf("?"); if(index > -1){//url说明有问号 if((length - 1) == index){//url最后一个符号为?,如:http://wwww.baidu.com? url += sb.toString(); }else{//情况为:http://wwww.baidu.com?aa=11 url += "&" + sb.toString(); } }else{//url后面没有问号,如:http://wwww.baidu.com url += "?" + sb.toString(); } return url; } }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.