小嫌 小嫌
3年前
js中箭头函数在对象内部的继承
function函数functionPerson()this.name'Jack',this.age25,this.sayNamefunction()console.log(this.name)functioninner()console.log(this.n
Wesley13 Wesley13
3年前
RSA 数据加密解密
 下述代码中:PUBLIC\_KEY和PRIVATE\_KEY可自己生成后替换即可。packagecom.bing.security.util;importorg.apache.commons.codec.binary.Hex;importjavax.crypto.C
Stella981 Stella981
3年前
Linux下php安装Redis扩展
1安装redis/usr/local/php/bin/phpize用phpize生成configure配置文件./configurewithphpconfig/usr/local/php/bin/phpconfig配置1make编译2makeinstall安装
Wesley13 Wesley13
3年前
MySQL存储过程语法
先上一段代码/创建字符串split函数/DROPFUNCTIONIFEXISTSSPLIT_STR;CREATEFUNCTIONSPLIT_STR(xVARCHAR(255),delimVARCHAR(12),posINT)
Wesley13 Wesley13
3年前
C++类中拷贝构造函数详解
a.C标准中提到“Thedefaultconstructor,copyconstructorandcopyassignmentoperator,anddestructorarespecialmemberfunctions.\Note:Theimplementationwillimplicitlydeclaret
Stella981 Stella981
3年前
MongoDB建立单机集群及建立root用户
1\.生成keyfile文件opensslrandbase64745/home/data/key/keychmod600/home/data/key/key该key的权限必须是6002\.建立conf文件systemLog: destination:f
Stella981 Stella981
3年前
Python 3中的相对导入
问题:_Iwanttoimportafunctionfromanotherfileinthesamedirectory._我想从同一目录中的另一个文件导入函数。_Sometimesitworksformewithfrom.mymoduleimportmyfunctionbutsome
Stella981 Stella981
3年前
JavaScript回调函数及数组方法测试
JavaScript回调函数及数组方法测试具体代码如下:<!DOCTYPEhtml<htmllang"en"<head<metacharset"GBK"<metahttpequiv"XUACompatible"content"ieedge
Wesley13 Wesley13
3年前
#Shell脚本
Shell脚本由json文件生成sqljson文件格式:$ head accounts.json{"index":{"_id":"1"}}{"account_number":1,"balance":39225,"firstname":"Amber","lastname":"Duke","age":32,"gen
JXDN JXDN
1年前
你写的深度克隆真的“深度”吗?
为了更好的理解其原理,我们自己来手写一个通用性非常强的深度克隆函数