简介: JavaScript 中的所有事物都是对象:字符串、数字、数组、日期,等等。在 JavaScript 中,对象是拥有属性和方法的数据。 一.对象的类型 本地对象:就是ECMA定义好的一些对象,包含Array、Boolean、Date、Function、Global、Math、Number、O ...
分类:
编程语言 时间:
2016-12-28 14:47:40
阅读次数:
203
Mixing Delphi and C++ You have a TStringList and <algorithm>. What can you do? Quite a lot, actually. Did you know that as of RAD Studio 10.1 Berlin, ...
分类:
编程语言 时间:
2016-12-23 07:47:30
阅读次数:
204
说到枚举,可能很多人都会想到枚举类型,但在javascript对象中有一个属性为可枚举性,他是什么呢? 概念 可枚举性(enumerable)用来控制所描述的属性,是否将被包括在for...in循环之中。具体来说,如果一个属性的enumerable为false,下面三个操作不会取到该属性。* for ...
分类:
编程语言 时间:
2016-12-21 09:33:12
阅读次数:
278
对象属性有两种 数据属性 访问器属性 数据属性:有四个特性 [[configurable]](代表属性是否可配置):当这个属性描述符值为true时,该属性可能会被改变,也可能会被从相应的对象删除,默认为false。 [[enumerable]](代表属性是否可枚举):表示能否通过for - in循环 ...
分类:
其他好文 时间:
2016-12-16 01:20:07
阅读次数:
290
protobuff 是谷歌开发的,在性能上要比Json xml好很多,对性能要求比较高的时候这个是一个不错的选择,但是这个目前只是一个序列化反序列化的东西,以前原生的只有几种语言的现在在github 上有多种语言有需要的可以自行查看。 这里将protobuff集成进去,可以自己写一个格式化的也可以安 ...
The farthest distance in the world is not the distance between life and death, but you do not know I love you when I stand in front of you. ...
分类:
其他好文 时间:
2016-12-02 13:39:29
阅读次数:
263
恢复内容开始 集合 建立 set() ={},集合没有顺序,由不可改变的数字 ,字符串,元组构成 元组的方法 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 ...
分类:
其他好文 时间:
2016-12-01 09:40:25
阅读次数:
250
Spring Boot + Jersey 通过命令行启动会发生错误FileNotFoundException异常 异常信息如下: 此问题是版本为8.5.6内置tomcat的bug,将tomcat.version 改为8.5.5就好了。 即: ...
分类:
编程语言 时间:
2016-11-28 23:36:14
阅读次数:
491
You are given two jugs with capacities x and y litres. There is an infinite amount of water supply available. You need to determine whether it is poss ...
分类:
其他好文 时间:
2016-11-28 12:55:51
阅读次数:
198