摘要:
需求: 花5豪币 点一次 每天点击上限次数 每人中奖上限 分享免费玩2次 分享只算一次成功 后面分享不增加次数奖品表code id 类型 豪币 券 不中 概率可配置 每天凌晨清除0点击数 数据库表(完成)奖品表:IDproductId //存券ID定死type //无奖品 豪币 卷chance 概率
阅读全文
posted @ 2019-12-30 11:20
一抹书香
阅读(581)
推荐(0)
摘要:
STRING 场景1、set get存储对象方式一set ID json{}方式二(灵活) 批量存 把字段分开mset user:id:name cwd user:id:balance 1888 取mget user:id:name user:id:balance 好处无需反序列化json,坏处需要
阅读全文
posted @ 2019-12-30 11:13
一抹书香
阅读(173)
推荐(0)
摘要:
//this.pro[index].sysNum=this.pro[index].sysNum.replace(/[^\d]/g,'');//先把非数字的都替换掉,除了数字和.this.pro[index].sysNum = this.pro[index].sysNum.replace(/[^\d.
阅读全文
posted @ 2019-08-30 13:42
一抹书香
阅读(4533)
推荐(0)
摘要:
/** ** 加法函数,用来得到精确的加法结果 ** 说明:javascript的加法结果会有误差,在两个浮点数相加的时候会比较明显。这个函数返回较为精确的加法结果。 ** 调用:accAdd(arg1,arg2) ** 返回值:arg1加上arg2的精确结果 **/ function accAdd
阅读全文
posted @ 2019-08-30 13:41
一抹书香
阅读(528)
推荐(0)
摘要:
mvn install:install-file -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.4 -Dpackaging=jar -Dfile=ueditor-1.1.2.jar -Dfile 为文件所在位置
阅读全文
posted @ 2019-08-29 15:56
一抹书香
阅读(139)
推荐(0)
摘要:
@ApiOperation(value = "相机,上传图片")@RequestMapping(value = "/spvsScheduleAssessContent/upload", method = RequestMethod.POST)public Map upload(MultipartRe
阅读全文
posted @ 2019-08-29 14:56
一抹书香
阅读(443)
推荐(0)
摘要:
$.ajaxSetup({ complete: function(XMLHttpRequest, textStatus) { }, error:function(jqXHR,textStatus,errorThrown){ switch(jqXHR.status){ case(500): alert
阅读全文
posted @ 2019-08-29 14:54
一抹书香
阅读(580)
推荐(0)
摘要:
String.prototype.replaceAll = function (FindText, RepText) { regExp = new RegExp(FindText, "g"); return this.replace(regExp, RepText);} new Vue({ el:
阅读全文
posted @ 2019-08-16 11:07
一抹书香
阅读(401)
推荐(0)
摘要:
新增网络适配器 设置自定义VMnet0 自动桥接 NAT的网络要配置网关 我们在CentOS中打开ifcfg-ens33文件(每个系统文件名都不同,但都是以ifcfg-ens33开头的文件),进行修改。 我们在后面加上下面两句话,GATEWAY是默认网关,DNS1是DNS配置。 GATEWAY=10
阅读全文
posted @ 2019-03-26 16:22
一抹书香
阅读(1204)
推荐(0)
摘要:
一:ZooKeeper集群安装配置 1:解压zookeeper-3.3.2.tar.gz并重命名为zookeeper。 2:进入~/zookeeper/conf目录: 拷贝zoo_sample.cfg文件为zoo.cfg,并编辑如下: dataDir=/home/hadoop/zookeeper/d
阅读全文
posted @ 2019-03-11 15:39
一抹书香
阅读(4050)
推荐(0)