Wesley13 Wesley13
2年前
java读取自定义的.properties 配置文件 中的key
  /读取.properties配置文件@parampropertiesUrl配置文件的路径@return配置文件中的keyvalue值/publicstaticMap<String,StringgetPrope
Wesley13 Wesley13
2年前
java 处理emoji表情
public class EmojiUtil {/  将str中的emoji表情转为byte数组    @param str  @return /public static String resolveToByteFromEmoji(String str
Wesley13 Wesley13
2年前
javaSHA1实现加密解密
封装一个方法用于加密/sha1加密@paramdata@return@throwsNoSuchAlgorithmException/publicstaticStringsha1(Stri
Wesley13 Wesley13
2年前
java代码跨域通用方法
/通用的跨越调接口方法@parampath请求的url路径@return/publicstaticStringgetHttpResponse(Stringpath){try{URLurlnewURL(path);HttpURLConnectionconn
昔不亏 昔不亏
3年前
「组件」倒计时
1:在components文件夹下新建CountDown.vuejs<template<p{{time}}</p</template<scriptexportdefault{data(){return{time:'',
Wesley13 Wesley13
2年前
java8接口默认方法静态方法和重复注解
接口默认方法和静态方法默认方法interfaceMyInterface1{defaultStringmethod1(){return"myInterface1defaultmethod";}}classMyClass
Stella981 Stella981
2年前
C# 动态生成Html地图文件
publicvoidGPSModel(stringx,stringy,stringss)//动态地图文件{if(x.Contains("")&&y.Contains(""))return;if(x""||y"")ret
Stella981 Stella981
2年前
Golang 返回&errorString,而不是errorString的原因
Errors包查看golang的errors包你会发现其源码是:funcNew(textstring)error{return&errorString{text}}//errorStringisatrivialimplementationofer
Wesley13 Wesley13
2年前
C++——Linux——Hello World!
include  //include位置:/usr/includeincludeusingnamespacestd;intmain(){cout<<"HelloWorld"<     return0;}gotesttest.cpp//用ggcc编译会出
Stella981 Stella981
2年前
JavaScript开发常用工具函数
1、isStatic:检测数据是不是除了symbol外的原始数据functionisStatic(value){return(typeofvalue'string'||typeofvalue