Wesley13 Wesley13
3年前
java 获取 classpath下的配置文件
一获取prop属性文件:/读取属性文件Createdbylgon2017/2/3./publicclassLoadPropertiesFile{publicstaticMap<String,StringloadPropFile(Str
Easter79 Easter79
3年前
sqlalchemy连接 MySQL(转)
fromsqlalchemyimportcreate_engine,Table,Column,Integer,String,MetaData,ForeignKeyenginecreate_engine("mysqlpymysql://root:a5230411@localhost:3306/test",echoTrue)
ThinkPHP V5.0 图片上传base64
/单图上传@returnbool|mixed|string/protectedfunctionuploadingqrcode($images'',$name'')if(empty($images))$thisresult($images,0,'图片错误');if(pregmatch('/^(data:\simag
Stella981 Stella981
3年前
Android 显示网页图片
原WebView web;String url;web.getSettings().setUseWideViewPort(true);web.getSettings().setLoadWithOverviewMode(true);web.getSettings().setDisplayZoomControl
Stella981 Stella981
3年前
Egret 类的创建和继承
classtestextendsegret.DisplayObjectContainer{/类的创建///属性name:string;age:number;ts:test;//可传参的构造方法publicconst
Stella981 Stella981
3年前
C++ lambda函数
lambda函数lambda函数是什么?还是直接看代码比较容易理解:intmain(){  inta1;  intb2;  //定义一个lambda函数  autosum\\(intx,inty)int{    returnxy;  
Wesley13 Wesley13
3年前
OSG节点访问和遍历
遍历节点树:osg::Node类中有两个辅助函数:voidascend(NodeVisitor&nv)//虚函数,向上一级节点推进访问器voidtraverse(NodeVisitor&nv)//虚函数,向下一级节点推进访问器NodeVisitor的traverse()函数实现如下:in
Wesley13 Wesley13
3年前
MyBatis 问题
nestedexceptionisorg.apache.ibatis.reflection.ReflectionException:Thereisnogetterforpropertynamed in'classjava.lang.String'Mapper.xml是这样的<selectid"findPl
Wesley13 Wesley13
3年前
MySQL管理与优化(9):存储过程和函数
存储过程和函数存储过程和函数是事先经过编译并存储在数据库中的一段SQL语句的集合。存储过程或函数的相关操作创建,修改存储过程或函数相关语法CREATEDEFINER{user|CURRENT_USER}PROCE
Stella981 Stella981
3年前
JavaScript开发常用工具函数
1、isStatic:检测数据是不是除了symbol外的原始数据functionisStatic(value){return(typeofvalue'string'||typeofvalue