JavaScript 对象 JavaScript 提供多个内建对象,比如 String、Date、Array 等等。 对象只是带有属性和方法的特殊数据类型。 访问对象的属性 属性是与对象相关的值。 访问对象属性的语法是: objectName.propertyName 这个例子使用了 String ...
分类:
编程语言 时间:
2017-07-28 22:29:32
阅读次数:
153
最近看看vue中自定义指令,感觉vue的指令和angular1的指令相差较大 var app =new Vue({ el:"#app", data:{ color:'red', }, methods:{ }, components:{ selfcomponent } }); 以上实现的效果是,在输入 ...
分类:
其他好文 时间:
2017-07-28 22:16:41
阅读次数:
290
Given a date, we’ll use the react-intl FormattedRelative component to render a date in a human readable format, such as “2 days ago”, in various langu ...
分类:
其他好文 时间:
2017-07-28 21:02:57
阅读次数:
211
new Date(); 是有创建了一个对象 其引用是是stu2.createDate QAQ 我错了,我错了,我错了,我错了 应该写成下面样子 所以clone方法是一个浅克隆 QAQ ...
分类:
编程语言 时间:
2017-07-28 21:02:19
阅读次数:
228
在不同服务器或系统之间进行交互时我们往往需要进行身份的认证,以满足安全上的防抵赖和防篡改。 要实现以上要求使用非对称加密算法是目前最理想的方案。 以下是具体的实现: 1. 生成RSA算法私钥和公钥对,用openssl(openssl的安装网上有很多资料,可以自行查看) 生成RSA私钥 openssl ...
分类:
编程语言 时间:
2017-07-28 21:00:36
阅读次数:
249
Using the react-intl FormattedDate and FormattedTime components, we’ll render a JavaScript Date into both a date string and a time string in different ...
分类:
其他好文 时间:
2017-07-28 20:58:13
阅读次数:
205
Learn how to use react-intl to set dynamic values into your language messages. We’ll also learn how to pass in those values by using a values prop in ...
分类:
其他好文 时间:
2017-07-28 20:57:42
阅读次数:
269
azkaban支持shell、java、mapreduce以及hive的工作流调度,在对这些不同类型任务调度之前须要配置所相应的插件;azkaban总体分为两部分azkaban executor server(负责任务调度的处理)、azkaban web server(提供web ui可视化操作); ...
分类:
其他好文 时间:
2017-07-28 20:53:11
阅读次数:
784
返回x分钟前/x小时前/昨天/x天前/x个月前/x年前 - (NSString *)timeInfo { return [NSDate timeInfoWithDate:self]; } + (NSString *)timeInfoWithDate:(NSDate *)date { return [ ...
分类:
移动开发 时间:
2017-07-28 18:22:16
阅读次数:
351
先启动firewall防火墙: 打开3306端口: mysql授权root账户远程访问: 重启mysql服务器: 搞定收工!!!! 抱怨一句,今天上海好热啊 ...
分类:
数据库 时间:
2017-07-28 14:15:38
阅读次数:
233