接口(interface)可以想想为一个纯的抽象类。他允许创建者规定一个类的基本形式:方法名,自编量表,以及返回类型,但是不规定方法体。接口也包含数据成员,但是他们都默认为static和final。即接口只提供细节,不提供实现细节。接口中所有方法都是抽象的,这些抽象方法通过实现这一接口的不同类来完成 ...
分类:
编程语言 时间:
2016-12-29 14:21:38
阅读次数:
182
function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != nul ...
function GetQueryString(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)... ...
分类:
其他好文 时间:
2016-12-28 11:44:22
阅读次数:
138
Problem: Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. ...
分类:
其他好文 时间:
2016-12-28 07:46:07
阅读次数:
201
抽象类在Java里面用的少,Java把抽象类转换成了接口。抽象类从代码的角度来讲就是要求人家实现的方法也有自己实现的方法。抽象类在C++里面用 的非常好,抽象类在C++里面是做规范做类型的。 ...
分类:
编程语言 时间:
2016-12-27 23:24:40
阅读次数:
222
Spark机器学习 1 在线学习 模型随着接收的新消息,不断更新自己;而不是像离线训练一次次重新训练。 2 Spark Streaming 离散化流(DStream) 输入源:Akka actors、消息队列、Flume、Kafka、…… http://spark.apache.org/docs/l ...
分类:
其他好文 时间:
2016-12-27 14:23:03
阅读次数:
245
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or ...
分类:
其他好文 时间:
2016-12-27 07:50:21
阅读次数:
501
-- 来源于网络 -- 更详细的介结参考联机帮助文档 xp_cmdshell --*执行DOS各种命令,结果以文本行返回。 xp_fixeddrives --*查询各磁盘/分区可用空间 xp_loginconfig --*报告SQL Server 实例在Windows 上运行时的登录安全配置 xp_ ...
分类:
数据库 时间:
2016-12-26 21:33:54
阅读次数:
224
//调用 ChangeDateFormat(CreatTime) //json日期转换 function ChangeDateFormat(jsondate) { jsondate = jsondate.replace("/Date(", "").replace(")/", ""); if (jso ...
分类:
Web程序 时间:
2016-12-26 16:19:15
阅读次数:
220
让ecshop模板支持php运算在 cls_template.php 底部加入函数:/*** 处理math中的公式.* */function get_math_para($val){$pa= $this->str_trim($val);foreach($pa AS $value){if(strrpo ...
分类:
Web程序 时间:
2016-12-26 12:00:59
阅读次数:
269