佛系码 佛系码
4年前
日常必备的JS工具函数大全
为元素添加on方法Element.prototype.onElement.prototype.addEventListener;NodeList.prototype.onfunction(event,fn)、'forEach'.call(this,function(el)el.on(ev
Wesley13 Wesley13
3年前
JS高级
<!DOCTYPEhtml<htmllang"en"<head<metacharset"UTF8"<title</title</head<body<script//为内置对象添加原型方法//实例中的方
Wesley13 Wesley13
3年前
JSON的使用
一.json常用转换方法1.listListlistnewArrayList();list.add("first");list.add("second");JSONArrayjsonArray2JSONArray.fromObject(list);
Easter79 Easter79
3年前
The setting logImpl is not known
问题org.apache.ibatis.builder.BuilderException:ThesettinglogImplisnotknown.Makesureyouspelleditcorrectly(casesensitive).解决方法MyBatis3.1.1jar还没有logImpl
Stella981 Stella981
3年前
React中使用echarts
1.安装相关的依赖:cnpmireactforechartsScnpmiechartsS2.使用方法:页面引入:importReactEchartsfrom'echartsforreact';1).使用组件方式classEchartsTestextendsComponent{
Easter79 Easter79
3年前
StringBuilder
1、首先需要填写一个StringBuilder的扩展类namespaceCode.Common{///<summary///扩展StringBuilder方法///防止Sql注入///</summarypublicstaticcl
Wesley13 Wesley13
3年前
PHP实现阳历(新历)与阴历(农历)互相转换
使用方法:<?phpheader("ContentType:text/html;charsetutf8");require"lunar.php";$lunarnewLunar();$month$lunarconvertSolarToLunar(2015,02,15);//将阳历
Stella981 Stella981
3年前
Netty基础
ChannelOutboundHandler本应该只关注outbound事件,但是它却声明了一个read方法:/Intercepts{@linkChannelHandlerContextread()}./voidread(ChannelHandlerContextctx)throwsExcep
Wesley13 Wesley13
3年前
ThinkPHP 导出 excel
//导出excel/方法/publicfunctionexportExcel($expTitle,$expCellName,$expTableData){$xlsTitleiconv('utf8','gb2312',$expTitle);//文件名称$fileName$_SESSION'account'.
Stella981 Stella981
3年前
Android 拍照是开启(调用)闪光灯(原创)
。。。。//mCamera为Camera对象,下面的是拍照方法。mCamera.takePicture(null,null,null,jpegCallback);//拍照时,开启闪光灯