創建map放二維碼的參數有什么用啊!我把hashmap刪了也能生成二維碼啊!這個hashmap起到什么作用?
????????HashMap hints=new HashMap();
?? ??? ?hints.put(EncodeHintType.CHARACTER_SET, "utf-8");
?? ??? ?hints.put(EncodeHintType.ERROR_CORRECTION,ErrorCorrectionLevel.M);
?? ??? ?hints.put(EncodeHintType.MARGIN,2);
2018-10-24
它有默認值,你沒有hints就直接使用默認值了。你可以試試看把 .M 換成另外幾個糾錯級別,是不是圖片變大或者變小了