Easter79 Easter79
2年前
vue Axios 向后端提交参数 请求头 json 方式(Content
importaxiosfrom'axios'exportdefault{name:'basetable',data(){return{tableData:,
Easter79 Easter79
2年前
springboot2.X访问静态文件配置
config配置:@ConfigurationpublicclassWebMvcConfigimplementsWebMvcConfigurer{/跨域配置@return/@BeanpublicCo
Wesley13 Wesley13
2年前
JS通用的解析URL方法
functionparseURL(url){varadocument.createElement('a');a.hrefurl;return{source:url,protocol:a.protocol.replace(':',''),
Stella981 Stella981
2年前
Shell函数返回值
Shell函数返回值shell函数返回值一般有3种方式:1.return语句shell函数的返回值可以和其他语言的返回值一样,通过return语句返回。比如:!/bin/bashfunctionmytest(){echo"mytestfunction"echo
Wesley13 Wesley13
2年前
Java笔试题库之选题题篇【1
1.下面中哪两个可以在A的子类中使用:()  classA{    protectedintmethod1(inta,intb){      return0;    }  }A.publicintmethod1(inta,intb){return0;}B.privateintme
Wesley13 Wesley13
2年前
Java中return返回结果的优先级
在Java开发时,异常处理是非常普遍的。先看这样一道关于异常处理的代码publicstaticintgetNumer(){inta1;try{returna;}catch(Exceptione){
Wesley13 Wesley13
2年前
Jaxb解析XML转换为JavaBean忽略命名空间
/解析xml(忽略命名空间)@paramcla@paramcontent@return@throwsJAXBException@throwsParserConfigurationException
Stella981 Stella981
2年前
Remote host closed connection during handshake
/\\\dopost请求\@paramurl\@parammsgEn\@return\/privateStringdoPost(Stringurl,StringmsgEn)throwsException{URLurlServletnull;BufferedRea
Stella981 Stella981
2年前
JS 对象数组Array 根据对象object key的值排序sort,很风骚哦
有个js对象数组varary\{id:1,name:"b"},{id:2,name:"b"}\需求是根据name或者id的值来排序,这里有个风骚的函数函数定义:function keysrt(key,desc) {  return function(a,b){    return desc ? ~~(ak
Easter79 Easter79
2年前
TypeScript里get属性的实现
例子:privategetactiveBaseSite():string{return(this._activeBaseSite??getContextParameterDefault(this.config,BASE_SI